6.0.2.16 release

This commit is contained in:
Gaudenz Alder 2017-01-30 16:15:20 +01:00
parent d19ad74867
commit 3c3a7f8e16
11 changed files with 633 additions and 137 deletions

View file

@ -1,3 +1,7 @@
30-JAN-2017: 6.0.2.16
- Adds CSV import plugin
29-JAN-2017: 6.0.2.15 29-JAN-2017: 6.0.2.15
- Uses mxGraph 3.7.0.1 - Uses mxGraph 3.7.0.1

View file

@ -1 +1 @@
6.0.2.15 6.0.2.16

View file

@ -1,7 +1,7 @@
CACHE MANIFEST CACHE MANIFEST
# THIS FILE WAS GENERATED. DO NOT MODIFY! # THIS FILE WAS GENERATED. DO NOT MODIFY!
# 01/29/2017 10:16 AM # 01/30/2017 04:08 PM
/app.html /app.html
/index.html?offline=1 /index.html?offline=1

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

@ -3083,25 +3083,25 @@ var FilenameDialog=function(a,c,f,d,b,e,g,k,l){l=null!=l?l:!0;var n,m,p=document
d(t.value)});q.className="geBtn gePrimaryBtn";this.init=function(){if(!(null==b&&null!=g)&&(t.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?t.select():document.execCommand("selectAll",!1,null),Graph.fileSupport)){var a=p.parentNode,d=null;mxEvent.addListener(a,"dragleave",function(b){null!=d&&(d.style.backgroundColor="",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(a,"dragover",mxUtils.bind(this,function(b){if(null==d&&(!mxClient.IS_IE||10<document.documentMode))d= d(t.value)});q.className="geBtn gePrimaryBtn";this.init=function(){if(!(null==b&&null!=g)&&(t.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?t.select():document.execCommand("selectAll",!1,null),Graph.fileSupport)){var a=p.parentNode,d=null;mxEvent.addListener(a,"dragleave",function(b){null!=d&&(d.style.backgroundColor="",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(a,"dragover",mxUtils.bind(this,function(b){if(null==d&&(!mxClient.IS_IE||10<document.documentMode))d=
t,d.style.backgroundColor="#ebf2f9";b.stopPropagation();b.preventDefault()}));mxEvent.addListener(a,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(t.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),q.click());b.stopPropagation();b.preventDefault()}))}};m=document.createElement("td");m.appendChild(t);n.appendChild(m);(null!=b||null==g)&&s.appendChild(n);null!=g&&(n=document.createElement("tr"), t,d.style.backgroundColor="#ebf2f9";b.stopPropagation();b.preventDefault()}));mxEvent.addListener(a,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(t.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),q.click());b.stopPropagation();b.preventDefault()}))}};m=document.createElement("td");m.appendChild(t);n.appendChild(m);(null!=b||null==g)&&s.appendChild(n);null!=g&&(n=document.createElement("tr"),
m=document.createElement("td"),m.colSpan=2,m.appendChild(g),n.appendChild(m),s.appendChild(n));n=document.createElement("tr");m=document.createElement("td");m.colSpan=2;m.style.paddingTop="20px";m.style.whiteSpace="nowrap";m.setAttribute("align","right");c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});c.className="geBtn";a.editor.cancelFirst&&m.appendChild(c);null!=k&&(f=mxUtils.button(mxResources.get("help"),function(){window.open(k)}),f.className="geBtn",m.appendChild(f)); m=document.createElement("td"),m.colSpan=2,m.appendChild(g),n.appendChild(m),s.appendChild(n));n=document.createElement("tr");m=document.createElement("td");m.colSpan=2;m.style.paddingTop="20px";m.style.whiteSpace="nowrap";m.setAttribute("align","right");c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});c.className="geBtn";a.editor.cancelFirst&&m.appendChild(c);null!=k&&(f=mxUtils.button(mxResources.get("help"),function(){window.open(k)}),f.className="geBtn",m.appendChild(f));
mxEvent.addListener(t,"keypress",function(b){13==b.keyCode&&q.click()});m.appendChild(q);a.editor.cancelFirst||m.appendChild(c);n.appendChild(m);s.appendChild(n);p.appendChild(s);this.container=p},TextareaDialog=function(a,c,f,d,b,e,g,k,l,n){g=null!=g?g:300;k=null!=k?k:120;n=null!=n?n:!1;var m,p,s=document.createElement("table"),t=document.createElement("tbody");m=document.createElement("tr");p=document.createElement("td");p.style.fontSize="10pt";p.style.width="100px";mxUtils.write(p,c);m.appendChild(p); mxEvent.addListener(t,"keypress",function(b){13==b.keyCode&&q.click()});m.appendChild(q);a.editor.cancelFirst||m.appendChild(c);n.appendChild(m);s.appendChild(n);p.appendChild(s);this.container=p},TextareaDialog=function(a,c,f,d,b,e,g,k,l,n,m){g=null!=g?g:300;k=null!=k?k:120;n=null!=n?n:!1;var p,s,t=document.createElement("table"),q=document.createElement("tbody");p=document.createElement("tr");s=document.createElement("td");s.style.fontSize="10pt";s.style.width="100px";mxUtils.write(s,c);p.appendChild(s);
t.appendChild(m);m=document.createElement("tr");p=document.createElement("td");var q=document.createElement("textarea");mxUtils.write(q,f||"");q.style.resize="none";q.style.width=g+"px";q.style.height=k+"px";this.textarea=q;this.init=function(){q.focus();q.scrollTop=0};p.appendChild(q);m.appendChild(p);t.appendChild(m);m=document.createElement("tr");p=document.createElement("td");p.style.paddingTop="14px";p.style.whiteSpace="nowrap";p.setAttribute("align","right");c=mxUtils.button(e||mxResources.get("cancel"), q.appendChild(p);p=document.createElement("tr");s=document.createElement("td");var v=document.createElement("textarea");m&&v.setAttribute("wrap","off");mxUtils.write(v,f||"");v.style.resize="none";v.style.width=g+"px";v.style.height=k+"px";this.textarea=v;this.init=function(){v.focus();v.scrollTop=0};s.appendChild(v);p.appendChild(s);q.appendChild(p);p=document.createElement("tr");s=document.createElement("td");s.style.paddingTop="14px";s.style.whiteSpace="nowrap";s.setAttribute("align","right");
function(){a.hideDialog();null!=b&&b()});c.className="geBtn";a.editor.cancelFirst&&p.appendChild(c);null!=l&&l(p);null!=d&&(l=mxUtils.button(mxResources.get("apply"),function(){n||a.hideDialog();d(q.value)}),l.className="geBtn gePrimaryBtn",p.appendChild(l));a.editor.cancelFirst||p.appendChild(c);m.appendChild(p);t.appendChild(m);s.appendChild(t);this.container=s},EditDiagramDialog=function(a){var c=document.createElement("div");c.style.textAlign="right";var f=document.createElement("textarea");f.setAttribute("wrap", c=mxUtils.button(e||mxResources.get("cancel"),function(){a.hideDialog();null!=b&&b()});c.className="geBtn";a.editor.cancelFirst&&s.appendChild(c);null!=l&&l(s);null!=d&&(l=mxUtils.button(mxResources.get("apply"),function(){n||a.hideDialog();d(v.value)}),l.className="geBtn gePrimaryBtn",s.appendChild(l));a.editor.cancelFirst||s.appendChild(c);p.appendChild(s);q.appendChild(p);t.appendChild(q);this.container=t},EditDiagramDialog=function(a){var c=document.createElement("div");c.style.textAlign="right";
"off");f.style.overflow="auto";f.style.resize="none";f.style.width="600px";f.style.height="370px";f.style.marginBottom="16px";f.value=mxUtils.getPrettyXml(a.editor.getGraphXml());c.appendChild(f);this.init=function(){f.focus()};Graph.fileSupport&&(f.addEventListener("dragover",function(b){b.stopPropagation();b.preventDefault()},!1),f.addEventListener("drop",function(b){b.stopPropagation();b.preventDefault();if(0<b.dataTransfer.files.length){b=b.dataTransfer.files[0];var d=new FileReader;d.onload= var f=document.createElement("textarea");f.setAttribute("wrap","off");f.style.overflow="auto";f.style.resize="none";f.style.width="600px";f.style.height="370px";f.style.marginBottom="16px";f.value=mxUtils.getPrettyXml(a.editor.getGraphXml());c.appendChild(f);this.init=function(){f.focus()};Graph.fileSupport&&(f.addEventListener("dragover",function(b){b.stopPropagation();b.preventDefault()},!1),f.addEventListener("drop",function(b){b.stopPropagation();b.preventDefault();if(0<b.dataTransfer.files.length){b=
function(b){f.value=b.target.result};d.readAsText(b)}else f.value=a.extractGraphModelFromEvent(b)},!1));var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.className="geBtn";a.editor.cancelFirst&&c.appendChild(d);var b=document.createElement("select");b.style.width="180px";b.className="geBtn";if(a.editor.graph.isEnabled()){var e=document.createElement("option");e.setAttribute("value","replace");mxUtils.write(e,mxResources.get("replaceExistingDrawing"));b.appendChild(e)}e= b.dataTransfer.files[0];var d=new FileReader;d.onload=function(b){f.value=b.target.result};d.readAsText(b)}else f.value=a.extractGraphModelFromEvent(b)},!1));var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.className="geBtn";a.editor.cancelFirst&&c.appendChild(d);var b=document.createElement("select");b.style.width="180px";b.className="geBtn";if(a.editor.graph.isEnabled()){var e=document.createElement("option");e.setAttribute("value","replace");mxUtils.write(e,mxResources.get("replaceExistingDrawing"));
document.createElement("option");e.setAttribute("value","new");mxUtils.write(e,mxResources.get("openInNewWindow"));null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime||b.appendChild(e);a.editor.graph.isEnabled()&&(e=document.createElement("option"),e.setAttribute("value","import"),mxUtils.write(e,mxResources.get("addToExistingDrawing")),b.appendChild(e));c.appendChild(b);e=mxUtils.button(mxResources.get("ok"),function(){var d=a.editor.graph.zapGremlins(mxUtils.trim(f.value)),c=null;if("new"== b.appendChild(e)}e=document.createElement("option");e.setAttribute("value","new");mxUtils.write(e,mxResources.get("openInNewWindow"));null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime||b.appendChild(e);a.editor.graph.isEnabled()&&(e=document.createElement("option"),e.setAttribute("value","import"),mxUtils.write(e,mxResources.get("addToExistingDrawing")),b.appendChild(e));c.appendChild(b);e=mxUtils.button(mxResources.get("ok"),function(){var d=a.editor.graph.zapGremlins(mxUtils.trim(f.value)),
b.value)window.openFile=new OpenFile(function(){a.hideDialog();window.openFile=null}),window.openFile.setData(d,null),window.open(a.getUrl());else if("replace"==b.value){a.editor.graph.model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(d).documentElement),a.hideDialog()}catch(e){c=e}finally{a.editor.graph.model.endUpdate()}}else if("import"==b.value){a.editor.graph.model.beginUpdate();try{var n=mxUtils.parseXml(d),m=new mxGraphModel;(new mxCodec(n)).decode(n.documentElement,m);var p=m.getChildren(m.getChildAt(m.getRoot(), c=null;if("new"==b.value)window.openFile=new OpenFile(function(){a.hideDialog();window.openFile=null}),window.openFile.setData(d,null),window.open(a.getUrl());else if("replace"==b.value){a.editor.graph.model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(d).documentElement),a.hideDialog()}catch(e){c=e}finally{a.editor.graph.model.endUpdate()}}else if("import"==b.value){a.editor.graph.model.beginUpdate();try{var n=mxUtils.parseXml(d),m=new mxGraphModel;(new mxCodec(n)).decode(n.documentElement,
0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){c=s}finally{a.editor.graph.model.endUpdate()}}null!=c&&mxUtils.alert(c.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=m.value,a=b.lastIndexOf(".");m.value=0<a?b.substring(0,a+1)+p.value:b+"."+p.value;"xml"===p.value?(s.setAttribute("disabled","true"),t.setAttribute("disabled","true"),q.setAttribute("disabled", m);var p=m.getChildren(m.getChildAt(m.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){c=s}finally{a.editor.graph.model.endUpdate()}}null!=c&&mxUtils.alert(c.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=m.value,a=b.lastIndexOf(".");m.value=0<a?b.substring(0,a+1)+p.value:b+"."+p.value;"xml"===p.value?(s.setAttribute("disabled","true"),
"true"),u.setAttribute("disabled","true")):(s.removeAttribute("disabled"),t.removeAttribute("disabled"),q.removeAttribute("disabled"),u.removeAttribute("disabled"));"png"===p.value||"svg"===p.value?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}function f(){t.style.backgroundColor=t.value*q.value>MAX_AREA||0>=t.value?"red":"";q.style.backgroundColor=t.value*q.value>MAX_AREA||0>=q.value?"red":""}var d=a.editor.graph,b=d.getGraphBounds(),e=d.view.scale,g=Math.ceil(b.width/e),k= t.setAttribute("disabled","true"),q.setAttribute("disabled","true"),u.setAttribute("disabled","true")):(s.removeAttribute("disabled"),t.removeAttribute("disabled"),q.removeAttribute("disabled"),u.removeAttribute("disabled"));"png"===p.value||"svg"===p.value?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}function f(){t.style.backgroundColor=t.value*q.value>MAX_AREA||0>=t.value?"red":"";q.style.backgroundColor=t.value*q.value>MAX_AREA||0>=q.value?"red":""}var d=a.editor.graph,b=
Math.ceil(b.height/e),l,e=document.createElement("table"),n=document.createElement("tbody");e.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";l.style.width="100px";mxUtils.write(l,mxResources.get("filename")+":");b.appendChild(l);var m=document.createElement("input");m.setAttribute("value",a.editor.getOrCreateFilename());m.style.width="180px";l=document.createElement("td");l.appendChild(m);b.appendChild(l);n.appendChild(b); d.getGraphBounds(),e=d.view.scale,g=Math.ceil(b.width/e),k=Math.ceil(b.height/e),l,e=document.createElement("table"),n=document.createElement("tbody");e.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";l.style.width="100px";mxUtils.write(l,mxResources.get("filename")+":");b.appendChild(l);var m=document.createElement("input");m.setAttribute("value",a.editor.getOrCreateFilename());m.style.width="180px";l=document.createElement("td");
b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("format")+":");b.appendChild(l);var p=document.createElement("select");p.style.width="180px";l=document.createElement("option");l.setAttribute("value","png");mxUtils.write(l,mxResources.get("formatPng"));p.appendChild(l);l=document.createElement("option");ExportDialog.showGifOption&&(l.setAttribute("value","gif"),mxUtils.write(l,mxResources.get("formatGif")),p.appendChild(l));l=document.createElement("option"); l.appendChild(m);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("format")+":");b.appendChild(l);var p=document.createElement("select");p.style.width="180px";l=document.createElement("option");l.setAttribute("value","png");mxUtils.write(l,mxResources.get("formatPng"));p.appendChild(l);l=document.createElement("option");ExportDialog.showGifOption&&(l.setAttribute("value","gif"),mxUtils.write(l,mxResources.get("formatGif")),
l.setAttribute("value","jpg");mxUtils.write(l,mxResources.get("formatJpg"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","pdf");mxUtils.write(l,mxResources.get("formatPdf"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","svg");mxUtils.write(l,mxResources.get("formatSvg"));p.appendChild(l);ExportDialog.showXmlOption&&(l=document.createElement("option"),l.setAttribute("value","xml"),mxUtils.write(l,mxResources.get("formatXml")),p.appendChild(l)); p.appendChild(l));l=document.createElement("option");l.setAttribute("value","jpg");mxUtils.write(l,mxResources.get("formatJpg"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","pdf");mxUtils.write(l,mxResources.get("formatPdf"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","svg");mxUtils.write(l,mxResources.get("formatSvg"));p.appendChild(l);ExportDialog.showXmlOption&&(l=document.createElement("option"),l.setAttribute("value","xml"),mxUtils.write(l,
l=document.createElement("td");l.appendChild(p);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("zoom")+" (%):");b.appendChild(l);var s=document.createElement("input");s.setAttribute("type","number");s.setAttribute("value","100");s.style.width="180px";l=document.createElement("td");l.appendChild(s);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize= mxResources.get("formatXml")),p.appendChild(l));l=document.createElement("td");l.appendChild(p);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("zoom")+" (%):");b.appendChild(l);var s=document.createElement("input");s.setAttribute("type","number");s.setAttribute("value","100");s.style.width="180px";l=document.createElement("td");l.appendChild(s);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");
"10pt";mxUtils.write(l,mxResources.get("width")+":");b.appendChild(l);var t=document.createElement("input");t.setAttribute("value",g);t.style.width="180px";l=document.createElement("td");l.appendChild(t);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("height")+":");b.appendChild(l);var q=document.createElement("input");q.setAttribute("value",k);q.style.width="180px";l=document.createElement("td"); l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("width")+":");b.appendChild(l);var t=document.createElement("input");t.setAttribute("value",g);t.style.width="180px";l=document.createElement("td");l.appendChild(t);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("height")+":");b.appendChild(l);var q=document.createElement("input");q.setAttribute("value",k);q.style.width=
l.appendChild(q);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("background")+":");b.appendChild(l);var v=document.createElement("input");v.setAttribute("type","checkbox");v.checked=null==d.background||d.background==mxConstants.NONE;l=document.createElement("td");l.appendChild(v);mxUtils.write(l,mxResources.get("transparent"));b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l= "180px";l=document.createElement("td");l.appendChild(q);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("background")+":");b.appendChild(l);var v=document.createElement("input");v.setAttribute("type","checkbox");v.checked=null==d.background||d.background==mxConstants.NONE;l=document.createElement("td");l.appendChild(v);mxUtils.write(l,mxResources.get("transparent"));b.appendChild(l);n.appendChild(b);
document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("borderWidth")+":");b.appendChild(l);var u=document.createElement("input");u.setAttribute("type","number");u.setAttribute("value","0");u.style.width="180px";l=document.createElement("td");l.appendChild(u);b.appendChild(l);n.appendChild(b);e.appendChild(n);mxEvent.addListener(p,"change",c);c();mxEvent.addListener(s,"change",function(){var b=Math.max(0,parseFloat(s.value)||100)/100;s.value=parseFloat((100*b).toFixed(2)); b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("borderWidth")+":");b.appendChild(l);var u=document.createElement("input");u.setAttribute("type","number");u.setAttribute("value","0");u.style.width="180px";l=document.createElement("td");l.appendChild(u);b.appendChild(l);n.appendChild(b);e.appendChild(n);mxEvent.addListener(p,"change",c);c();mxEvent.addListener(s,"change",function(){var b=Math.max(0,parseFloat(s.value)||100)/100;
0<g?(t.value=Math.floor(g*b),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(t,"change",function(){var b=parseInt(t.value)/g;0<b?(s.value=parseFloat((100*b).toFixed(2)),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(q,"change",function(){var b=parseInt(q.value)/k;0<b?(s.value=parseFloat((100*b).toFixed(2)),t.value=Math.floor(g*b)):(s.value="100",t.value=g,q.value=k);f()});b=document.createElement("tr");l=document.createElement("td"); s.value=parseFloat((100*b).toFixed(2));0<g?(t.value=Math.floor(g*b),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(t,"change",function(){var b=parseInt(t.value)/g;0<b?(s.value=parseFloat((100*b).toFixed(2)),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(q,"change",function(){var b=parseInt(q.value)/k;0<b?(s.value=parseFloat((100*b).toFixed(2)),t.value=Math.floor(g*b)):(s.value="100",t.value=g,q.value=k);f()});b=document.createElement("tr");
l.setAttribute("align","right");l.style.paddingTop="22px";l.colSpan=2;var x=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(s.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=m.value,c=p.value,e=Math.max(0,parseFloat(s.value)||100)/100,f=Math.max(0,parseInt(u.value)),g=d.background;if(("svg"==c||"png"==c)&&v.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,c,g,e,f)}}));x.className="geBtn gePrimaryBtn"; l=document.createElement("td");l.setAttribute("align","right");l.style.paddingTop="22px";l.colSpan=2;var x=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(s.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=m.value,c=p.value,e=Math.max(0,parseFloat(s.value)||100)/100,f=Math.max(0,parseInt(u.value)),g=d.background;if(("svg"==c||"png"==c)&&v.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,c,g,e,f)}}));x.className=
var A=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});A.className="geBtn";a.editor.cancelFirst?(l.appendChild(A),l.appendChild(x)):(l.appendChild(x),l.appendChild(A));b.appendChild(l);n.appendChild(b);e.appendChild(n);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0; "geBtn gePrimaryBtn";var A=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});A.className="geBtn";a.editor.cancelFirst?(l.appendChild(A),l.appendChild(x)):(l.appendChild(x),l.appendChild(A));b.appendChild(l);n.appendChild(b);e.appendChild(n);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;
ExportDialog.exportFile=function(a,c,f,d,b,e){var g=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),c,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(g.getSvg(d,b,e)),c,f);else{var k=g.getGraphBounds(),l=mxUtils.createXmlDocument(),n=l.createElement("output");l.appendChild(n);l=new mxXmlCanvas2D(n);l.translate(Math.floor((e/b-k.x)/g.view.scale),Math.floor((e/b-k.y)/g.view.scale));l.scale(b/g.view.scale);(new mxImageExport).drawState(g.getView().getState(g.model.root), ExportDialog.exportFile=function(a,c,f,d,b,e){var g=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),c,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(g.getSvg(d,b,e)),c,f);else{var k=g.getGraphBounds(),l=mxUtils.createXmlDocument(),n=l.createElement("output");l.appendChild(n);l=new mxXmlCanvas2D(n);l.translate(Math.floor((e/b-k.x)/g.view.scale),Math.floor((e/b-k.y)/g.view.scale));l.scale(b/g.view.scale);(new mxImageExport).drawState(g.getView().getState(g.model.root),
l);n="xml\x3d"+encodeURIComponent(mxUtils.getXml(n));l=Math.ceil(k.width*b/g.view.scale+2*e);b=Math.ceil(k.height*b/g.view.scale+2*e);n.length<=MAX_REQUEST_SIZE&&l*b<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format\x3d"+f+"\x26filename\x3d"+encodeURIComponent(c)+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+l+"\x26h\x3d"+b+"\x26"+n)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}}; l);n="xml\x3d"+encodeURIComponent(mxUtils.getXml(n));l=Math.ceil(k.width*b/g.view.scale+2*e);b=Math.ceil(k.height*b/g.view.scale+2*e);n.length<=MAX_REQUEST_SIZE&&l*b<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format\x3d"+f+"\x26filename\x3d"+encodeURIComponent(c)+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+l+"\x26h\x3d"+b+"\x26"+n)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
ExportDialog.saveLocalFile=function(a,c,f,d){c.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml\x3d"+encodeURIComponent(c)+"\x26filename\x3d"+encodeURIComponent(f)+"\x26format\x3d"+d)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))}; ExportDialog.saveLocalFile=function(a,c,f,d){c.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml\x3d"+encodeURIComponent(c)+"\x26filename\x3d"+encodeURIComponent(f)+"\x26format\x3d"+d)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};
@ -7348,45 +7348,44 @@ y.x/z.scale-z.translate.x)+4*e.gridSize),z=Math.ceil(Math.max(0,(y.y+y.height)/z
e.moveCells(B,20,20)}finally{e.getModel().endUpdate()}e.clearCellOverlays();z=a.editor.graph.view;y=a.editor.graph.getGraphBounds();g=Math.ceil(Math.max(0,y.x/z.scale-z.translate.x)+e.gridSize);z=Math.ceil(Math.max(0,(y.y+y.height)/z.scale-z.translate.y)+4*e.gridSize);a.editor.graph.setSelectionCells(a.editor.graph.importCells(e.getModel().getChildren(e.getDefaultParent()),g,z));a.editor.graph.scrollCellToVisible(a.editor.graph.getSelectionCell());e.destroy();d.parentNode.removeChild(d)}}}function d(){return"list"== e.moveCells(B,20,20)}finally{e.getModel().endUpdate()}e.clearCellOverlays();z=a.editor.graph.view;y=a.editor.graph.getGraphBounds();g=Math.ceil(Math.max(0,y.x/z.scale-z.translate.x)+e.gridSize);z=Math.ceil(Math.max(0,(y.y+y.height)/z.scale-z.translate.y)+4*e.gridSize);a.editor.graph.setSelectionCells(a.editor.graph.importCells(e.getModel().getChildren(e.getDefaultParent()),g,z));a.editor.graph.scrollCellToVisible(a.editor.graph.getSelectionCell());e.destroy();d.parentNode.removeChild(d)}}}function d(){return"list"==
g.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean":"plantUmlPng"==g.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml":"plantUmlSvg"==g.value?"@startuml\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml": g.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean":"plantUmlPng"==g.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml":"plantUmlSvg"==g.value?"@startuml\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml":
";Example:\na-\x3eb\nb-\x3ec\nc-\x3ea\n"}var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.style.resize="none";e.style.width="100%";e.style.height="354px";e.style.marginBottom="16px";var g=document.createElement("select"),k=document.createElement("option");k.setAttribute("value","list");k.setAttribute("selected","selected");mxUtils.write(k,mxResources.get("list"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","diagram"); ";Example:\na-\x3eb\nb-\x3ec\nc-\x3ea\n"}var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.style.resize="none";e.style.width="100%";e.style.height="354px";e.style.marginBottom="16px";var g=document.createElement("select"),k=document.createElement("option");k.setAttribute("value","list");k.setAttribute("selected","selected");mxUtils.write(k,mxResources.get("list"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","diagram");
mxUtils.write(k,mxResources.get("diagram"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","plantUmlSvg");mxUtils.write(k,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var l=document.createElement("option");l.setAttribute("value","plantUmlPng");mxUtils.write(l,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");console.log(/.*\.draw\.io$/.test("www.draw.io"));console.log(/.*\.draw\.io$/.test("www2.draw.io"));console.log(/.*\.draw\.io$/.test("www.draw2.io")); mxUtils.write(k,mxResources.get("diagram"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","plantUmlSvg");mxUtils.write(k,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var l=document.createElement("option");l.setAttribute("value","plantUmlPng");mxUtils.write(l,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");/.*\.draw\.io$/.test(window.location.hostname)&&(Graph.fileSupport&&!a.isOffline())&&(g.appendChild(k),g.appendChild(l));var n=
console.log(/.*\.draw\.io$/.test("www.draw.io2"));/.*\.draw\.io$/.test(window.location.hostname)&&(Graph.fileSupport&&!a.isOffline())&&(g.appendChild(k),g.appendChild(l));var n=d();e.value=n;b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),e.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0<a.dataTransfer.files.length){a=a.dataTransfer.files[0];var b=new FileReader; d();e.value=n;b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),e.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0<a.dataTransfer.files.length){a=a.dataTransfer.files[0];var b=new FileReader;b.onload=function(a){e.value=a.target.result};b.readAsText(a)}},!1));b.appendChild(g);mxEvent.addListener(g,"change",function(){var a=d();if(0==e.value.length||e.value==n)n=a,
b.onload=function(a){e.value=a.target.result};b.readAsText(a)}},!1));b.appendChild(g);mxEvent.addListener(g,"change",function(){var a=d();if(0==e.value.length||e.value==n)n=a,e.value=n});k=mxUtils.button(mxResources.get("close"),function(){e.value==n?a.hideDialog():a.confirm(mxResources.get("areYouSure"),function(){a.hideDialog()})});k.className="geBtn";a.editor.cancelFirst&&b.appendChild(k);l=mxUtils.button(mxResources.get("insert"),function(){a.hideDialog();f(e.value,g.value)});b.appendChild(l); e.value=n});k=mxUtils.button(mxResources.get("close"),function(){e.value==n?a.hideDialog():a.confirm(mxResources.get("areYouSure"),function(){a.hideDialog()})});k.className="geBtn";a.editor.cancelFirst&&b.appendChild(k);l=mxUtils.button(mxResources.get("insert"),function(){a.hideDialog();f(e.value,g.value)});b.appendChild(l);l.className="geBtn gePrimaryBtn";a.editor.cancelFirst||b.appendChild(k);this.container=b},NewDialog=function(a,c,f,d){function b(){if(d)f||a.hideDialog(),d(t,p.value);else{var b=
l.className="geBtn gePrimaryBtn";a.editor.cancelFirst||b.appendChild(k);this.container=b},NewDialog=function(a,c,f,d){function b(){if(d)f||a.hideDialog(),d(t,p.value);else{var b=p.value;if(null!=b&&0<b.length){var c=a.mode==App.MODE_ONEDRIVE||a.mode==App.MODE_GOOGLE&&(null==a.stateArg||null==a.stateArg.folderId)?a.mode:null;a.pickFolder(c,function(c){a.createFile(b,t,null!=s&&0<s.length?s:null,null,function(){a.hideDialog()},null,c)},c!=App.MODE_GOOGLE)}}}function e(a,b,c){null!=q&&(q.style.backgroundColor= p.value;if(null!=b&&0<b.length){var c=a.mode==App.MODE_ONEDRIVE||a.mode==App.MODE_GOOGLE&&(null==a.stateArg||null==a.stateArg.folderId)?a.mode:null;a.pickFolder(c,function(c){a.createFile(b,t,null!=s&&0<s.length?s:null,null,function(){a.hideDialog()},null,c)},c!=App.MODE_GOOGLE)}}}function e(a,b,c){null!=q&&(q.style.backgroundColor="transparent",q.style.border="1px solid transparent");t=b;s=c;q=a;q.style.backgroundColor="#e6eff8";q.style.border="1px solid #ccd9ea"}function g(a,c,d,f,k){var g=document.createElement("div");
"transparent",q.style.border="1px solid transparent");t=b;s=c;q=a;q.style.backgroundColor="#e6eff8";q.style.border="1px solid #ccd9ea"}function g(a,c,d,f,k){var g=document.createElement("div");g.className="geTemplate";g.style.height=A+"px";g.style.width=z+"px";null!=f&&0<f.length&&g.setAttribute("title",f);if(null!=a&&0<a.length){a.substring(0,a.length-4);g.style.backgroundImage="url("+TEMPLATE_PATH+"/"+a.substring(0,a.length-4)+".png)";g.style.backgroundPosition="center center";g.style.backgroundRepeat= g.className="geTemplate";g.style.height=A+"px";g.style.width=z+"px";null!=f&&0<f.length&&g.setAttribute("title",f);if(null!=a&&0<a.length){a.substring(0,a.length-4);g.style.backgroundImage="url("+TEMPLATE_PATH+"/"+a.substring(0,a.length-4)+".png)";g.style.backgroundPosition="center center";g.style.backgroundRepeat="no-repeat";var l=!1;mxEvent.addListener(g,"click",function(d){v.setAttribute("disabled","disabled");g.style.backgroundColor="transparent";g.style.border="1px solid transparent";mxUtils.get(TEMPLATE_PATH+
"no-repeat";var l=!1;mxEvent.addListener(g,"click",function(d){v.setAttribute("disabled","disabled");g.style.backgroundColor="transparent";g.style.border="1px solid transparent";mxUtils.get(TEMPLATE_PATH+"/"+a,mxUtils.bind(this,function(a){200==a.getStatus()&&(v.removeAttribute("disabled"),e(g,a.getText(),c),l&&b())}))});mxEvent.addListener(g,"dblclick",function(a){l=!0})}else g.innerHTML='\x3ctable width\x3d"100%" height\x3d"100%"\x3e\x3ctr\x3e\x3ctd align\x3d"center" valign\x3d"middle"\x3e'+mxResources.get(d)+ "/"+a,mxUtils.bind(this,function(a){200==a.getStatus()&&(v.removeAttribute("disabled"),e(g,a.getText(),c),l&&b())}))});mxEvent.addListener(g,"dblclick",function(a){l=!0})}else g.innerHTML='\x3ctable width\x3d"100%" height\x3d"100%"\x3e\x3ctr\x3e\x3ctd align\x3d"center" valign\x3d"middle"\x3e'+mxResources.get(d)+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",k&&e(g),mxEvent.addListener(g,"click",function(a){e(g)}),mxEvent.addListener(g,"dblclick",function(a){b()});u.appendChild(g)}function k(){function a(){for(var c=
"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",k&&e(g),mxEvent.addListener(g,"click",function(a){e(g)}),mxEvent.addListener(g,"dblclick",function(a){b()});u.appendChild(g)}function k(){function a(){for(var c=!0;b<B.length&&(c||0!=mxUtils.mod(b,30));)c=B[b++],g(c.url,c.libs,c.title,c.tooltip,c.select),c=!1}var b=0;mxEvent.addListener(u,"scroll",function(b){u.scrollTop+u.clientHeight>=u.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in y){var e=document.createElement("div"),f=mxResources.get(d), !0;b<B.length&&(c||0!=mxUtils.mod(b,30));)c=B[b++],g(c.url,c.libs,c.title,c.tooltip,c.select),c=!1}var b=0;mxEvent.addListener(u,"scroll",function(b){u.scrollTop+u.clientHeight>=u.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in y){var e=document.createElement("div"),f=mxResources.get(d),k=y[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18<f.length&&(f=f.substring(0,18)+"\x26hellip;");e.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;";
k=y[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18<f.length&&(f=f.substring(0,18)+"\x26hellip;");e.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;";e.setAttribute("title",f+" ("+k.length+")");mxUtils.write(e,e.getAttribute("title"));x.appendChild(e);null==c&&(c=e,c.style.backgroundColor="#ebf2f9");(function(d,f){mxEvent.addListener(e,"click",function(){c!=f&&(c.style.backgroundColor="",c=f,c.style.backgroundColor= e.setAttribute("title",f+" ("+k.length+")");mxUtils.write(e,e.getAttribute("title"));x.appendChild(e);null==c&&(c=e,c.style.backgroundColor="#ebf2f9");(function(d,f){mxEvent.addListener(e,"click",function(){c!=f&&(c.style.backgroundColor="",c=f,c.style.backgroundColor="#ebf2f9",u.scrollTop=0,u.innerHTML="",b=0,B=y[d],a())})})(d,e)}a()}f=null!=f?f:!0;var l=document.createElement("div");l.style.height="100%";var n=document.createElement("div");n.style.whiteSpace="nowrap";n.style.height="46px";l.appendChild(n);
"#ebf2f9",u.scrollTop=0,u.innerHTML="",b=0,B=y[d],a())})})(d,e)}a()}f=null!=f?f:!0;var l=document.createElement("div");l.style.height="100%";var n=document.createElement("div");n.style.whiteSpace="nowrap";n.style.height="46px";l.appendChild(n);var m=document.createElement("img");m.setAttribute("border","0");m.setAttribute("align","absmiddle");m.style.width="40px";m.style.height="40px";m.style.marginRight="10px";m.style.paddingBottom="4px";m.src=a.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg": var m=document.createElement("img");m.setAttribute("border","0");m.setAttribute("align","absmiddle");m.style.width="40px";m.style.height="40px";m.style.marginRight="10px";m.style.paddingBottom="4px";m.src=a.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":a.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":a.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":a.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";!c&&f&&n.appendChild(m);f&&mxUtils.write(n,
a.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":a.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":a.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";!c&&f&&n.appendChild(m);f&&mxUtils.write(n,(null==a.mode||a.mode==App.MODE_GOOGLE||a.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");m=".xml";a.mode==App.MODE_GOOGLE&&null!=a.drive?m=a.drive.extension:a.mode==App.MODE_DROPBOX&&null!=a.dropbox?m=a.dropbox.extension: (null==a.mode||a.mode==App.MODE_GOOGLE||a.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");m=".xml";a.mode==App.MODE_GOOGLE&&null!=a.drive?m=a.drive.extension:a.mode==App.MODE_DROPBOX&&null!=a.dropbox?m=a.dropbox.extension:a.mode==App.MODE_ONEDRIVE&&null!=a.oneDrive&&(m=a.oneDrive.extension);var p=document.createElement("input");p.setAttribute("value",a.defaultFilename+m);p.style.marginRight="20px";p.style.marginLeft="10px";p.style.width=c?"220px":"450px";this.init=
a.mode==App.MODE_ONEDRIVE&&null!=a.oneDrive&&(m=a.oneDrive.extension);var p=document.createElement("input");p.setAttribute("value",a.defaultFilename+m);p.style.marginRight="20px";p.style.marginLeft="10px";p.style.width=c?"220px":"450px";this.init=function(){f&&(p.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?p.select():document.execCommand("selectAll",!1,null))};f&&n.appendChild(p);var s=null,t=null,q=null,v=mxUtils.button(mxResources.get("create"),function(){b()});v.className= function(){f&&(p.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?p.select():document.execCommand("selectAll",!1,null))};f&&n.appendChild(p);var s=null,t=null,q=null,v=mxUtils.button(mxResources.get("create"),function(){b()});v.className="geBtn gePrimaryBtn";var u=document.createElement("div");u.style.border="1px solid #d3d3d3";u.style.position="absolute";u.style.left="160px";u.style.right="34px";u.style.top=f?"72px":"40px";u.style.bottom="76px";u.style.margin="6px 0 0 -1px";u.style.padding=
"geBtn gePrimaryBtn";var u=document.createElement("div");u.style.border="1px solid #d3d3d3";u.style.position="absolute";u.style.left="160px";u.style.right="34px";u.style.top=f?"72px":"40px";u.style.bottom="76px";u.style.margin="6px 0 0 -1px";u.style.padding="6px";u.style.overflow="auto";var x=document.createElement("div");x.style.cssText="position:absolute;left:30px;width:128px;top:72px;bottom:76px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";f||(x.style.top="40px");var A=140,z=140,y={}, "6px";u.style.overflow="auto";var x=document.createElement("div");x.style.cssText="position:absolute;left:30px;width:128px;top:72px;bottom:76px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";f||(x.style.top="40px");var A=140,z=140,y={},D=1;y.basic=[{title:"blankDiagram",select:!0}];var B=y.basic;if(!c){l.appendChild(x);l.appendChild(u);var C=!1;mxUtils.get(TEMPLATE_PATH+"/index.xml",function(a){if(!C){C=!0;for(a=a.getXml().documentElement.firstChild;null!=a;){if("undefined"!==typeof a.getAttribute){var b=
D=1;y.basic=[{title:"blankDiagram",select:!0}];var B=y.basic;if(!c){l.appendChild(x);l.appendChild(u);var C=!1;mxUtils.get(TEMPLATE_PATH+"/index.xml",function(a){if(!C){C=!0;for(a=a.getXml().documentElement.firstChild;null!=a;){if("undefined"!==typeof a.getAttribute){var b=a.getAttribute("url");if(null!=b){var c=b.indexOf("/"),b=b.substring(0,c),c=y[b];null==c&&(D++,c=[],y[b]=c);c.push({url:a.getAttribute("url"),libs:a.getAttribute("libs"),title:a.getAttribute("title"),tooltip:a.getAttribute("url")})}}a= a.getAttribute("url");if(null!=b){var c=b.indexOf("/"),b=b.substring(0,c),c=y[b];null==c&&(D++,c=[],y[b]=c);c.push({url:a.getAttribute("url"),libs:a.getAttribute("libs"),title:a.getAttribute("title"),tooltip:a.getAttribute("url")})}}a=a.nextSibling}k()}})}mxEvent.addListener(p,"keypress",function(a){13==a.keyCode&&b()});n=document.createElement("div");n.style.marginTop=c?"4px":"16px";n.style.textAlign="right";n.style.position="absolute";n.style.left="40px";n.style.bottom="30px";n.style.right="40px";
a.nextSibling}k()}})}mxEvent.addListener(p,"keypress",function(a){13==a.keyCode&&b()});n=document.createElement("div");n.style.marginTop=c?"4px":"16px";n.style.textAlign="right";n.style.position="absolute";n.style.left="40px";n.style.bottom="30px";n.style.right="40px";m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});m.className="geBtn";a.editor.cancelFirst&&n.appendChild(m);if(!c&&!a.isOffline()&&f&&null==d){var F=mxUtils.button(mxResources.get("help"),function(){window.open("https://support.draw.io/display/DO/Creating+and+Opening+Files")}); m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});m.className="geBtn";a.editor.cancelFirst&&n.appendChild(m);if(!c&&!a.isOffline()&&f&&null==d){var F=mxUtils.button(mxResources.get("help"),function(){window.open("https://support.draw.io/display/DO/Creating+and+Opening+Files")});F.className="geBtn";n.appendChild(F)}!c&&"1"!=urlParams.embed&&(c=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var b=new FilenameDialog(a,"",mxResources.get("create"),function(b){null!=
F.className="geBtn";n.appendChild(F)}!c&&"1"!=urlParams.embed&&(c=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var b=new FilenameDialog(a,"",mxResources.get("create"),function(b){null!=b&&0<b.length&&(b=a.getUrl(window.location.pathname+"?mode\x3d"+a.mode+"\x26title\x3d"+encodeURIComponent(p.value)+"\x26create\x3d"+encodeURIComponent(b)),null==a.getCurrentFile()?window.location.href=b:window.openWindow(b))},mxResources.get("url"));a.showDialog(b.container,300,80,!0,!0);b.init()}), b&&0<b.length&&(b=a.getUrl(window.location.pathname+"?mode\x3d"+a.mode+"\x26title\x3d"+encodeURIComponent(p.value)+"\x26create\x3d"+encodeURIComponent(b)),null==a.getCurrentFile()?window.location.href=b:window.openWindow(b))},mxResources.get("url"));a.showDialog(b.container,300,80,!0,!0);b.init()}),c.className="geBtn",n.appendChild(c));n.appendChild(v);!a.editor.cancelFirst&&null==d&&n.appendChild(m);l.appendChild(n);this.container=l},CreateDialog=function(a,c,f,d,b,e,g,k,l,n,m){function p(b,c,d,
c.className="geBtn",n.appendChild(c));n.appendChild(v);!a.editor.cancelFirst&&null==d&&n.appendChild(m);l.appendChild(n);this.container=l},CreateDialog=function(a,c,f,d,b,e,g,k,l,n,m){function p(b,c,d,e){function f(){mxEvent.addListener(k,"click",function(){s(d);t(d)})}var k=document.createElement("a");k.style.overflow="hidden";var g=document.createElement("img");g.src=b;g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width="60px";g.style.height="60px";g.style.paddingBottom= e){function f(){mxEvent.addListener(k,"click",function(){s(d);t(d)})}var k=document.createElement("a");k.style.overflow="hidden";var g=document.createElement("img");g.src=b;g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width="60px";g.style.height="60px";g.style.paddingBottom="6px";k.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";k.className="geBaseButton";k.style.position="relative";k.style.margin="4px";k.style.padding="8px 8px 10px 8px";k.style.whiteSpace="nowrap";
"6px";k.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";k.className="geBaseButton";k.style.position="relative";k.style.margin="4px";k.style.padding="8px 8px 10px 8px";k.style.whiteSpace="nowrap";k.appendChild(g);mxClient.IS_QUIRKS&&(k.style.cssFloat="left",k.style.zoom="1");k.style.color="gray";k.style.fontSize="11px";var l=document.createElement("div");k.appendChild(l);mxUtils.write(l,c);if(null!=e&&null==a[e]){g.style.visibility="hidden";mxUtils.setOpacity(l,10);var n=new Spinner({lines:12, k.appendChild(g);mxClient.IS_QUIRKS&&(k.style.cssFloat="left",k.style.zoom="1");k.style.color="gray";k.style.fontSize="11px";var l=document.createElement("div");k.appendChild(l);mxUtils.write(l,c);if(null!=e&&null==a[e]){g.style.visibility="hidden";mxUtils.setOpacity(l,10);var n=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});n.spin(k);var m=window.setTimeout(function(){null==a[e]&&(n.stop(),k.style.display="none")},
length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});n.spin(k);var m=window.setTimeout(function(){null==a[e]&&(n.stop(),k.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[e]&&(window.clearTimeout(m),mxUtils.setOpacity(l,100),g.style.visibility="",n.stop(),f())}))}else f();A.appendChild(k)}function s(b){if(g){var d=x.value,e=d.lastIndexOf(".");if(0>c.lastIndexOf(".")&&(!v||0>e)){b=null!=b?b:z.value; 3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[e]&&(window.clearTimeout(m),mxUtils.setOpacity(l,100),g.style.visibility="",n.stop(),f())}))}else f();A.appendChild(k)}function s(b){if(g){var d=x.value,e=d.lastIndexOf(".");if(0>c.lastIndexOf(".")&&(!v||0>e)){b=null!=b?b:z.value;var f="";b==App.MODE_GOOGLE?f=a.drive.extension:b==App.MODE_DROPBOX?f=a.dropbox.extension:b==App.MODE_ONEDRIVE?f=a.oneDrive.extension:b==App.MODE_DEVICE&&(f=".xml");0<=e&&(d=d.substring(0,e));x.value=
var f="";b==App.MODE_GOOGLE?f=a.drive.extension:b==App.MODE_DROPBOX?f=a.dropbox.extension:b==App.MODE_ONEDRIVE?f=a.oneDrive.extension:b==App.MODE_DEVICE&&(f=".xml");0<=e&&(d=d.substring(0,e));x.value=d+f}}}function t(b){var c=x.value;if(null==b||null!=c&&0<c.length)a.hideDialog(),f(c,b)}g=null!=g?g:!0;k=null!=k?k:!0;var q=document.createElement("div"),v=!0;null==d&&a.addLanguageMenu(q);var u=document.createElement("h2");mxUtils.write(u,b||mxResources.get("create"));u.style.marginTop="0px";u.style.marginBottom= d+f}}}function t(b){var c=x.value;if(null==b||null!=c&&0<c.length)a.hideDialog(),f(c,b)}g=null!=g?g:!0;k=null!=k?k:!0;var q=document.createElement("div"),v=!0;null==d&&a.addLanguageMenu(q);var u=document.createElement("h2");mxUtils.write(u,b||mxResources.get("create"));u.style.marginTop="0px";u.style.marginBottom="24px";q.appendChild(u);mxUtils.write(q,mxResources.get("filename")+":");var x=document.createElement("input");x.setAttribute("value",c);x.style.width="280px";x.style.marginLeft="10px";x.style.marginBottom=
"24px";q.appendChild(u);mxUtils.write(q,mxResources.get("filename")+":");var x=document.createElement("input");x.setAttribute("value",c);x.style.width="280px";x.style.marginLeft="10px";x.style.marginBottom="20px";this.init=function(){x.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?x.select():document.execCommand("selectAll",!1,null)};q.appendChild(x);mxUtils.br(q);var A=document.createElement("div");A.style.textAlign="center";v?(A.style.marginTop="6px",q.appendChild(A)):mxUtils.write(q, "20px";this.init=function(){x.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?x.select():document.execCommand("selectAll",!1,null)};q.appendChild(x);mxUtils.br(q);var A=document.createElement("div");A.style.textAlign="center";v?(A.style.marginTop="6px",q.appendChild(A)):mxUtils.write(q,mxResources.get("chooseAnOption")+":");var z=document.createElement("select");z.style.marginLeft="10px";!a.isOfflineApp()&&!a.isOffline()&&("function"===typeof window.DriveClient&&(b=document.createElement("option"),
mxResources.get("chooseAnOption")+":");var z=document.createElement("select");z.style.marginLeft="10px";!a.isOfflineApp()&&!a.isOffline()&&("function"===typeof window.DriveClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(b,mxResources.get("googleDrive")),z.appendChild(b),p(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.DropboxClient&&(b=document.createElement("option"),b.setAttribute("value", b.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(b,mxResources.get("googleDrive")),z.appendChild(b),p(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.DropboxClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_DROPBOX),mxUtils.write(b,mxResources.get("dropbox")),z.appendChild(b),a.mode==App.MODE_DROPBOX&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),
App.MODE_DROPBOX),mxUtils.write(b,mxResources.get("dropbox")),z.appendChild(b),a.mode==App.MODE_DROPBOX&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),"function"===typeof window.OneDriveClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(b,mxResources.get("oneDrive")),z.appendChild(b),a.mode==App.MODE_ONEDRIVE&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/onedrive-logo.svg", App.MODE_DROPBOX,"dropbox")),"function"===typeof window.OneDriveClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(b,mxResources.get("oneDrive")),z.appendChild(b),a.mode==App.MODE_ONEDRIVE&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=a.getCurrentFile()&&!mxClient.IS_IOS)b=document.createElement("option"),
mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=a.getCurrentFile()&&!mxClient.IS_IOS)b=document.createElement("option"),b.setAttribute("value",App.MODE_DEVICE),mxUtils.write(b,mxResources.get("device")),z.appendChild(b),(a.mode==App.MODE_DEVICE||!k)&&b.setAttribute("selected","selected"),m&&(mxUtils.br(A),p(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE));k&&(isLocalStorage&&"0"!=urlParams.browser)&& b.setAttribute("value",App.MODE_DEVICE),mxUtils.write(b,mxResources.get("device")),z.appendChild(b),(a.mode==App.MODE_DEVICE||!k)&&b.setAttribute("selected","selected"),m&&(mxUtils.br(A),p(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE));k&&(isLocalStorage&&"0"!=urlParams.browser)&&(k=document.createElement("option"),k.setAttribute("value",App.MODE_BROWSER),mxUtils.write(k,mxResources.get("browser")),z.appendChild(k),a.mode==App.MODE_BROWSER&&k.setAttribute("selected",
(k=document.createElement("option"),k.setAttribute("value",App.MODE_BROWSER),mxUtils.write(k,mxResources.get("browser")),z.appendChild(k),a.mode==App.MODE_BROWSER&&k.setAttribute("selected","selected"),p(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));k=document.createElement("div");k.style.marginTop=v?"26px":"38px";k.style.textAlign=v?"center":"right";v||(q.appendChild(z),mxEvent.addListener(z,"change",s),s());null!=n&&(b=mxUtils.button(mxResources.get("help"),function(){window.open(n)}), "selected"),p(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));k=document.createElement("div");k.style.marginTop=v?"26px":"38px";k.style.textAlign=v?"center":"right";v||(q.appendChild(z),mxEvent.addListener(z,"change",s),s());null!=n&&(b=mxUtils.button(mxResources.get("help"),function(){window.open(n)}),b.className="geBtn",k.appendChild(b));b=mxUtils.button(mxResources.get("cancel"),function(){null!=d?d():(a.fileLoaded(null),a.hideDialog(),window.close(),window.location.href=
b.className="geBtn",k.appendChild(b));b=mxUtils.button(mxResources.get("cancel"),function(){null!=d?d():(a.fileLoaded(null),a.hideDialog(),window.close(),window.location.href=a.getUrl())});b.className="geBtn";a.editor.cancelFirst&&k.appendChild(b);null==d&&(u=mxUtils.button(mxResources.get("decideLater"),function(){t(null)}),u.className="geBtn",k.appendChild(u));l&&(l=mxUtils.button(mxResources.get("openInNewWindow"),function(){t("_blank")}),l.className="geBtn",k.appendChild(l));if(!mxClient.IS_IOS|| a.getUrl())});b.className="geBtn";a.editor.cancelFirst&&k.appendChild(b);null==d&&(u=mxUtils.button(mxResources.get("decideLater"),function(){t(null)}),u.className="geBtn",k.appendChild(u));l&&(l=mxUtils.button(mxResources.get("openInNewWindow"),function(){t("_blank")}),l.className="geBtn",k.appendChild(l));if(!mxClient.IS_IOS||!v)e=mxUtils.button(e||mxResources.get("create"),function(){t(m?"download":v?App.MODE_DEVICE:z.value)}),e.className="geBtn gePrimaryBtn",k.appendChild(e);a.editor.cancelFirst||
!v)e=mxUtils.button(e||mxResources.get("create"),function(){t(m?"download":v?App.MODE_DEVICE:z.value)}),e.className="geBtn gePrimaryBtn",k.appendChild(e);a.editor.cancelFirst||k.appendChild(b);mxEvent.addListener(x,"keypress",function(b){13==b.keyCode?t(v?App.MODE_DEVICE:z.value):27==b.keyCode&&(a.fileLoaded(null),a.hideDialog(),window.close())});q.appendChild(k);this.container=q},PopupDialog=function(a,c,f,d,b){b=null!=b?b:!0;var e=document.createElement("div");e.style.textAlign="left";mxUtils.write(e, k.appendChild(b);mxEvent.addListener(x,"keypress",function(b){13==b.keyCode?t(v?App.MODE_DEVICE:z.value):27==b.keyCode&&(a.fileLoaded(null),a.hideDialog(),window.close())});q.appendChild(k);this.container=q},PopupDialog=function(a,c,f,d,b){b=null!=b?b:!0;var e=document.createElement("div");e.style.textAlign="left";mxUtils.write(e,mxResources.get("fileOpenLocation"));mxUtils.br(e);mxUtils.br(e);var g=mxUtils.button(mxResources.get("openInThisWindow"),function(){b&&a.hideDialog();null!=d&&d()});g.className=
mxResources.get("fileOpenLocation"));mxUtils.br(e);mxUtils.br(e);var g=mxUtils.button(mxResources.get("openInThisWindow"),function(){b&&a.hideDialog();null!=d&&d()});g.className="geBtn";g.style.marginBottom="8px";g.style.width="280px";e.appendChild(g);mxUtils.br(e);var k=mxUtils.button(mxResources.get("openInNewWindow"),function(){b&&a.hideDialog();null!=f&&f();window.open(c)});k.className="geBtn gePrimaryBtn";k.style.width=g.style.width;e.appendChild(k);mxUtils.br(e);mxUtils.br(e);mxUtils.write(e, "geBtn";g.style.marginBottom="8px";g.style.width="280px";e.appendChild(g);mxUtils.br(e);var k=mxUtils.button(mxResources.get("openInNewWindow"),function(){b&&a.hideDialog();null!=f&&f();window.open(c)});k.className="geBtn gePrimaryBtn";k.style.width=g.style.width;e.appendChild(k);mxUtils.br(e);mxUtils.br(e);mxUtils.write(e,mxResources.get("allowPopups"));this.container=e},ImageDialog=function(a,c,f,d,b,e){e=null!=e?e:!0;var g=a.editor.graph,k=document.createElement("div");mxUtils.write(k,c);c=document.createElement("div");
mxResources.get("allowPopups"));this.container=e},ImageDialog=function(a,c,f,d,b,e){e=null!=e?e:!0;var g=a.editor.graph,k=document.createElement("div");mxUtils.write(k,c);c=document.createElement("div");c.className="geTitle";c.style.backgroundColor="transparent";c.style.borderColor="transparent";c.style.whiteSpace="nowrap";c.style.textOverflow="clip";c.style.cursor="default";mxClient.IS_VML||(c.style.paddingRight="20px");var l=document.createElement("input");l.setAttribute("value",f);l.setAttribute("type", c.className="geTitle";c.style.backgroundColor="transparent";c.style.borderColor="transparent";c.style.whiteSpace="nowrap";c.style.textOverflow="clip";c.style.cursor="default";mxClient.IS_VML||(c.style.paddingRight="20px");var l=document.createElement("input");l.setAttribute("value",f);l.setAttribute("type","text");l.style.marginTop="6px";l.style.width=(Graph.fileSupport?420:340)+(mxClient.IS_QUIRKS?20:-20)+"px";l.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";l.style.backgroundRepeat=
"text");l.style.marginTop="6px";l.style.width=(Graph.fileSupport?420:340)+(mxClient.IS_QUIRKS?20:-20)+"px";l.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";l.style.backgroundRepeat="no-repeat";l.style.backgroundPosition="100% 50%";l.style.paddingRight="14px";f=document.createElement("div");f.setAttribute("title",mxResources.get("reset"));f.style.position="relative";f.style.left="-16px";f.style.width="12px";f.style.height="14px";f.style.cursor="pointer";f.style.display=mxClient.IS_VML? "no-repeat";l.style.backgroundPosition="100% 50%";l.style.paddingRight="14px";f=document.createElement("div");f.setAttribute("title",mxResources.get("reset"));f.style.position="relative";f.style.left="-16px";f.style.width="12px";f.style.height="14px";f.style.cursor="pointer";f.style.display=mxClient.IS_VML?"inline":"inline-block";f.style.top=(mxClient.IS_VML?0:3)+"px";f.style.background="url('"+a.editor.transparentImage+"')";mxEvent.addListener(f,"click",function(){l.value="";l.focus()});c.appendChild(l);
"inline":"inline-block";f.style.top=(mxClient.IS_VML?0:3)+"px";f.style.background="url('"+a.editor.transparentImage+"')";mxEvent.addListener(f,"click",function(){l.value="";l.focus()});c.appendChild(l);c.appendChild(f);k.appendChild(c);var n=function(b,c,f){var k="data:"==b.substring(0,5);(!a.isOffline()||k&&"undefined"===typeof chrome)&&a.spinner.spin(document.body,mxResources.get("inserting"))?a.loadImage(b,function(k){a.spinner.stop();a.hideDialog();var g=null!=c&&null!=f?Math.max(c/k.width,f/ c.appendChild(f);k.appendChild(c);var n=function(b,c,f){var k="data:"==b.substring(0,5);(!a.isOffline()||k&&"undefined"===typeof chrome)&&a.spinner.spin(document.body,mxResources.get("inserting"))?a.loadImage(b,function(k){a.spinner.stop();a.hideDialog();var g=null!=c&&null!=f?Math.max(c/k.width,f/k.height):Math.min(1,Math.min(520/k.width,520/k.height));e&&(b=a.convertDataUri(b));d(b,Math.round(Number(k.width)*g),Math.round(Number(k.height)*g))},function(){a.spinner.stop();d(null);a.showError(mxResources.get("error"),
k.height):Math.min(1,Math.min(520/k.width,520/k.height));e&&(b=a.convertDataUri(b));d(b,Math.round(Number(k.width)*g),Math.round(Number(k.height)*g))},function(){a.spinner.stop();d(null);a.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b=a.convertDataUri(b),c=null==c?120:c,f=null==f?100:f,a.hideDialog(),d(b,c,f))},m=function(c){if(null!=c&&0<c.length){var e=b?null:g.getModel().getGeometry(g.getSelectionCell());null!=e?n(c,e.width,e.height):n(c)}else a.hideDialog(), mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b=a.convertDataUri(b),c=null==c?120:c,f=null==f?100:f,a.hideDialog(),d(b,c,f))},m=function(c){if(null!=c&&0<c.length){var e=b?null:g.getModel().getGeometry(g.getSelectionCell());null!=e?n(c,e.width,e.height):n(c)}else a.hideDialog(),d(null)};this.init=function(){l.focus();if(Graph.fileSupport){l.setAttribute("placeholder",mxResources.get("dragImagesHere"));var b=k.parentNode,c=null;mxEvent.addListener(b,"dragleave",function(a){null!=c&&(c.parentNode.removeChild(c),
d(null)};this.init=function(){l.focus();if(Graph.fileSupport){l.setAttribute("placeholder",mxResources.get("dragImagesHere"));var b=k.parentNode,c=null;mxEvent.addListener(b,"dragleave",function(a){null!=c&&(c.parentNode.removeChild(c),c=null);a.stopPropagation();a.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(d){if(null==c&&(!mxClient.IS_IE||10<document.documentMode))c=a.highlightElement(b);d.stopPropagation();d.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this, c=null);a.stopPropagation();a.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(d){if(null==c&&(!mxClient.IS_IE||10<document.documentMode))c=a.highlightElement(b);d.stopPropagation();d.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this,function(b){null!=c&&(c.parentNode.removeChild(c),c=null);if(0<b.dataTransfer.files.length)a.importFiles(b.dataTransfer.files,0,0,a.maxImageSize,function(a,b,c,d,e,f){m(a)},function(){},function(a){return"image/"==a.type.substring(0,
function(b){null!=c&&(c.parentNode.removeChild(c),c=null);if(0<b.dataTransfer.files.length)a.importFiles(b.dataTransfer.files,0,0,a.maxImageSize,function(a,b,c,d,e,f){m(a)},function(){},function(a){return"image/"==a.type.substring(0,6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!mxEvent.isControlDown(b));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")){var d=b.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(d)&&m(decodeURIComponent(d))}b.stopPropagation(); 6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!mxEvent.isControlDown(b));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")){var d=b.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(d)&&m(decodeURIComponent(d))}b.stopPropagation();b.preventDefault()}),!1)}};f=document.createElement("div");f.style.marginTop=mxClient.IS_QUIRKS?"22px":"14px";f.style.textAlign="right";c=mxUtils.button(mxResources.get("cancel"),function(){a.spinner.stop();a.hideDialog()});
b.preventDefault()}),!1)}};f=document.createElement("div");f.style.marginTop=mxClient.IS_QUIRKS?"22px":"14px";f.style.textAlign="right";c=mxUtils.button(mxResources.get("cancel"),function(){a.spinner.stop();a.hideDialog()});c.className="geBtn";a.editor.cancelFirst&&f.appendChild(c);ImageDialog.filePicked=function(a){a.action==google.picker.Action.PICKED&&null!=a.docs[0].thumbnails&&(a=a.docs[0].thumbnails[a.docs[0].thumbnails.length-1],null!=a&&(l.value=a.url));l.focus()};if(Graph.fileSupport){var p= c.className="geBtn";a.editor.cancelFirst&&f.appendChild(c);ImageDialog.filePicked=function(a){a.action==google.picker.Action.PICKED&&null!=a.docs[0].thumbnails&&(a=a.docs[0].thumbnails[a.docs[0].thumbnails.length-1],null!=a&&(l.value=a.url));l.focus()};if(Graph.fileSupport){var p=document.createElement("input");p.setAttribute("multiple","multiple");p.setAttribute("type","file");if(null==document.documentMode){mxEvent.addListener(p,"change",function(b){a.importFiles(p.files,0,0,a.maxImageSize,function(a,
document.createElement("input");p.setAttribute("multiple","multiple");p.setAttribute("type","file");if(null==document.documentMode){mxEvent.addListener(p,"change",function(b){a.importFiles(p.files,0,0,a.maxImageSize,function(a,b,c,d,e,f){m(a)},function(){},function(a){return"image/"==a.type.substring(0,6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!0)});var s=mxUtils.button(mxResources.get("open"),function(){p.click()});s.className="geBtn";f.appendChild(s)}}"undefined"!=typeof google&&("undefined"!= b,c,d,e,f){m(a)},function(){},function(a){return"image/"==a.type.substring(0,6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!0)});var s=mxUtils.button(mxResources.get("open"),function(){p.click()});s.className="geBtn";f.appendChild(s)}}"undefined"!=typeof google&&("undefined"!=typeof google.picker&&window.self===window.top)&&(s=mxUtils.button(mxResources.get("search"),function(){if(null==a.imageSearchPicker){var b=(new google.picker.PickerBuilder).setLocale(mxLanguage).addView(google.picker.ViewId.IMAGE_SEARCH).enableFeature(google.picker.Feature.NAV_HIDDEN);
typeof google.picker&&window.self===window.top)&&(s=mxUtils.button(mxResources.get("search"),function(){if(null==a.imageSearchPicker){var b=(new google.picker.PickerBuilder).setLocale(mxLanguage).addView(google.picker.ViewId.IMAGE_SEARCH).enableFeature(google.picker.Feature.NAV_HIDDEN);a.imageSearchPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.imageSearchPicker.setVisible(!0);a.movePickersToTop()}),s.className="geBtn",f.appendChild(s),null!=a.drive&&"1"==urlParams.photos&& a.imageSearchPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.imageSearchPicker.setVisible(!0);a.movePickersToTop()}),s.className="geBtn",f.appendChild(s),null!=a.drive&&"1"==urlParams.photos&&(s=mxUtils.button(mxResources.get("googlePlus"),function(){a.spinner.spin(document.body,mxResources.get("authorizing"))&&a.drive.checkToken(mxUtils.bind(this,function(){a.spinner.stop();if(null==a.photoPicker){var b=gapi.auth.getToken().access_token,b=(new google.picker.PickerBuilder).setAppId(a.drive.appId).setLocale(mxLanguage).setOAuthToken(b).addView(google.picker.ViewId.PHOTOS).addView(google.picker.ViewId.PHOTO_ALBUMS).addView(google.picker.ViewId.PHOTO_UPLOAD);
(s=mxUtils.button(mxResources.get("googlePlus"),function(){a.spinner.spin(document.body,mxResources.get("authorizing"))&&a.drive.checkToken(mxUtils.bind(this,function(){a.spinner.stop();if(null==a.photoPicker){var b=gapi.auth.getToken().access_token,b=(new google.picker.PickerBuilder).setAppId(a.drive.appId).setLocale(mxLanguage).setOAuthToken(b).addView(google.picker.ViewId.PHOTOS).addView(google.picker.ViewId.PHOTO_ALBUMS).addView(google.picker.ViewId.PHOTO_UPLOAD);a.photoPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.photoPicker.setVisible(!0); a.photoPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.photoPicker.setVisible(!0);a.movePickersToTop()}))}),s.className="geBtn",f.appendChild(s)));mxEvent.addListener(l,"keypress",function(a){13==a.keyCode&&m(l.value)});s=mxUtils.button(mxResources.get("apply"),function(){m(l.value)});s.className="geBtn gePrimaryBtn";f.appendChild(s);a.editor.cancelFirst||f.appendChild(c);Graph.fileSupport&&(f.style.marginTop="120px",k.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",
a.movePickersToTop()}))}),s.className="geBtn",f.appendChild(s)));mxEvent.addListener(l,"keypress",function(a){13==a.keyCode&&m(l.value)});s=mxUtils.button(mxResources.get("apply"),function(){m(l.value)});s.className="geBtn gePrimaryBtn";f.appendChild(s);a.editor.cancelFirst||f.appendChild(c);Graph.fileSupport&&(f.style.marginTop="120px",k.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",k.style.backgroundPosition="center 65%",k.style.backgroundRepeat="no-repeat",c=document.createElement("div"), k.style.backgroundPosition="center 65%",k.style.backgroundRepeat="no-repeat",c=document.createElement("div"),c.style.position="absolute",c.style.width="420px",c.style.top="58%",c.style.textAlign="center",c.style.fontSize="18px",c.style.color="#a0c3ff",mxUtils.write(c,mxResources.get("dragImagesHere")),k.appendChild(c));k.appendChild(f);this.container=k};
c.style.position="absolute",c.style.width="420px",c.style.top="58%",c.style.textAlign="center",c.style.fontSize="18px",c.style.color="#a0c3ff",mxUtils.write(c,mxResources.get("dragImagesHere")),k.appendChild(c));k.appendChild(f);this.container=k};
PrintDialog.prototype.create=function(a){function c(){s.value=Math.max(1,Math.min(g,Math.max(parseInt(s.value),parseInt(p.value))));p.value=Math.max(1,Math.min(g,Math.min(parseInt(s.value),parseInt(p.value))))}function f(b){function c(a,b,d){var f=a.getGraphBounds(),k=0,g=0,l=K.get(),n=1/a.pageScale,m=u.checked;if(m)var n=parseInt(G.value),p=parseInt(I.value),n=Math.min(l.height*p/(f.height/a.view.scale),l.width*n/(f.width/a.view.scale));else n=parseInt(v.value)/(100*a.pageScale),isNaN(n)&&(e=1/a.pageScale, PrintDialog.prototype.create=function(a){function c(){s.value=Math.max(1,Math.min(g,Math.max(parseInt(s.value),parseInt(p.value))));p.value=Math.max(1,Math.min(g,Math.min(parseInt(s.value),parseInt(p.value))))}function f(b){function c(a,b,d){var f=a.getGraphBounds(),k=0,g=0,l=K.get(),n=1/a.pageScale,m=u.checked;if(m)var n=parseInt(G.value),p=parseInt(I.value),n=Math.min(l.height*p/(f.height/a.view.scale),l.width*n/(f.width/a.view.scale));else n=parseInt(v.value)/(100*a.pageScale),isNaN(n)&&(e=1/a.pageScale,
v.value="100 %");l=mxRectangle.fromRectangle(l);l.width=Math.ceil(l.width*e);l.height=Math.ceil(l.height*e);n*=e;!m&&a.pageVisible?(f=a.getPageLayout(),k-=f.x*l.width,g-=f.y*l.height):m=!0;if(null==b){b=PrintDialog.createPrintPreview(a,n,l,0,k,g,m);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var q=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=q.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,null, v.value="100 %");l=mxRectangle.fromRectangle(l);l.width=Math.ceil(l.width*e);l.height=Math.ceil(l.height*e);n*=e;!m&&a.pageVisible?(f=a.getPageLayout(),k-=f.x*l.width,g-=f.y*l.height):m=!0;if(null==b){b=PrintDialog.createPrintPreview(a,n,l,0,k,g,m);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var q=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=q.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,null,
d,!0)}else{l=a.background;if(null==l||""==l||l==mxConstants.NONE)l="#ffffff";b.backgroundColor=l;b.autoOrigin=m;b.appendGraph(a,n,k,g,d,!0)}return b}var e=parseInt(M.value)/100;isNaN(e)&&(e=1,M.value="100 %");var e=0.75*e,f=p.value,g=s.value,l=!n.checked,m=null;l&&(l=f==k&&g==k);if(!l&&null!=a.pages&&a.pages.length){var q=0,l=a.pages.length-1;n.checked||(q=parseInt(f)-1,l=parseInt(g)-1);for(var x=q;x<=l;x++){var t=a.pages[x],f=t==a.currentPage?d:null;if(null==f){var f=a.createTemporaryGraph(d.getStylesheet()), d,!0)}else{l=a.background;if(null==l||""==l||l==mxConstants.NONE)l="#ffffff";b.backgroundColor=l;b.autoOrigin=m;b.appendGraph(a,n,k,g,d,!0)}return b}var e=parseInt(M.value)/100;isNaN(e)&&(e=1,M.value="100 %");var e=0.75*e,f=p.value,g=s.value,l=!n.checked,m=null;l&&(l=f==k&&g==k);if(!l&&null!=a.pages&&a.pages.length){var q=0,l=a.pages.length-1;n.checked||(q=parseInt(f)-1,l=parseInt(g)-1);for(var x=q;x<=l;x++){var t=a.pages[x],f=t==a.currentPage?d:null;if(null==f){var f=a.createTemporaryGraph(d.getStylesheet()),
@ -7558,7 +7557,7 @@ c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!=
[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan= [SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=
[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.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+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.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.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves= [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.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"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var t=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,n){if(null!=c&&null==mxMarker.markers[c]){var m=this.getPackageForType(c);null!=m&&mxStencilRegistry.getStencil(m)}return t.apply(this,arguments)}})();(function(){EditorUi.VERSION="6.0.2.15";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6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"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var t=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,n){if(null!=c&&null==mxMarker.markers[c]){var m=this.getPackageForType(c);null!=m&&mxStencilRegistry.getStencil(m)}return t.apply(this,arguments)}})();(function(){EditorUi.VERSION="6.0.2.16";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFw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SOMRvlxFGAcTJook5eEHIhQcwpWIkAFQECkNy9AQWFwyEAkPRQ4FAwQIE2llQQAh+QQJCgAvACwAAAAADAAMAIVNcY5SdZFigptph6BvjKN0kKd8lquAmq+EnbGGn7KHn7ONpLaOpbearr+csMCdscCescGhtMOnuMauvsuzws60w862xdC9ytW/y9a/zNbCztjG0drH0tvK1N3M1t7N19/U3ePb4uff5urj6Ozk6e3l6u7m6u7o7PDq7vDt8PPv8vTw8vTw8/X19vf6+vv///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGQ8CXcEgsvlytVUplJLJIpSEDUESFTELBwSgCCQEV42kjDFiMo4uQsDB2MkLHoEHUTD7DRAHC8VAiZ0QSCgYIDxhNiUEAOw\x3d\x3d";
EditorUi.prototype.emptyDiagramXml='\x3cmxGraphModel\x3e\x3croot\x3e\x3cmxCell id\x3d"0"/\x3e\x3cmxCell id\x3d"1" parent\x3d"0"/\x3e\x3c/root\x3e\x3c/mxGraphModel\x3e';EditorUi.prototype.emptyLibraryXml="\x3cmxlibrary\x3e[]\x3c/mxlibrary\x3e";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle="shape\x3dstencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE\x3d);whiteSpace\x3dwrap;html\x3d1;"; EditorUi.prototype.emptyDiagramXml='\x3cmxGraphModel\x3e\x3croot\x3e\x3cmxCell id\x3d"0"/\x3e\x3cmxCell id\x3d"1" parent\x3d"0"/\x3e\x3c/root\x3e\x3c/mxGraphModel\x3e';EditorUi.prototype.emptyLibraryXml="\x3cmxlibrary\x3e[]\x3c/mxlibrary\x3e";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle="shape\x3dstencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE\x3d);whiteSpace\x3dwrap;html\x3d1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;(function(){EditorUi.prototype.useCanvasForExport=!1;try{var a=document.createElement("canvas"),b=new Image;b.onload=function(){try{a.getContext("2d").drawImage(b,0,0);var c=a.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=c&&6<c.length}catch(d){}}; EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;(function(){EditorUi.prototype.useCanvasForExport=!1;try{var a=document.createElement("canvas"),b=new Image;b.onload=function(){try{a.getContext("2d").drawImage(b,0,0);var c=a.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=c&&6<c.length}catch(d){}};
@ -7610,8 +7609,8 @@ A.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.g
"hidden",null!=e?e.style.border="3px dotted rgb(254, 137, 12)":g.style.border="3px dotted rgb(254, 137, 12)",g.style.cursor="copy",A.panningManager.stop(),A.autoScroll=!1,null!=A.graphHandler.guide&&A.graphHandler.guide.setVisible(!1),null!=A.graphHandler.hint&&(A.graphHandler.hint.style.visibility="hidden"),mxEvent.consume(a))}),mxUtils.bind(this,function(a){A.isMouseDown&&(null!=A.panningManager&&null!=A.graphHandler)&&(g.style.border="3px solid transparent",null!=e&&(e.style.border="3px dotted lightGray"), "hidden",null!=e?e.style.border="3px dotted rgb(254, 137, 12)":g.style.border="3px dotted rgb(254, 137, 12)",g.style.cursor="copy",A.panningManager.stop(),A.autoScroll=!1,null!=A.graphHandler.guide&&A.graphHandler.guide.setVisible(!1),null!=A.graphHandler.hint&&(A.graphHandler.hint.style.visibility="hidden"),mxEvent.consume(a))}),mxUtils.bind(this,function(a){A.isMouseDown&&(null!=A.panningManager&&null!=A.graphHandler)&&(g.style.border="3px solid transparent",null!=e&&(e.style.border="3px dotted lightGray"),
g.style.cursor="default",this.sidebar.showTooltips=!0,A.panningManager.stop(),A.graphHandler.reset(),A.isMouseDown=!1,A.autoScroll=!0,B(a),mxEvent.consume(a))}));mxEvent.addListener(g,"mouseleave",mxUtils.bind(this,function(a){A.isMouseDown&&null!=A.graphHandler.shape&&(A.graphHandler.shape.node.style.visibility="visible",g.style.border="3px solid transparent",g.style.cursor="",A.autoScroll=!0,null!=A.graphHandler.guide&&A.graphHandler.guide.setVisible(!0),null!=A.graphHandler.hint&&(A.graphHandler.hint.style.visibility= g.style.cursor="default",this.sidebar.showTooltips=!0,A.panningManager.stop(),A.graphHandler.reset(),A.isMouseDown=!1,A.autoScroll=!0,B(a),mxEvent.consume(a))}));mxEvent.addListener(g,"mouseleave",mxUtils.bind(this,function(a){A.isMouseDown&&null!=A.graphHandler.shape&&(A.graphHandler.shape.node.style.visibility="visible",g.style.border="3px solid transparent",g.style.cursor="",A.autoScroll=!0,null!=A.graphHandler.guide&&A.graphHandler.guide.setVisible(!0),null!=A.graphHandler.hint&&(A.graphHandler.hint.style.visibility=
"visible"),null!=e&&(e.style.border="3px dotted lightGray"))}));Graph.fileSupport&&(mxEvent.addListener(g,"dragover",mxUtils.bind(this,function(a){null!=e?e.style.border="3px dotted rgb(254, 137, 12)":g.style.border="3px dotted rgb(254, 137, 12)";a.dataTransfer.dropEffect="copy";g.style.cursor="copy";this.sidebar.hideTooltip();a.stopPropagation();a.preventDefault()})),mxEvent.addListener(g,"drop",mxUtils.bind(this,function(a){g.style.border="3px solid transparent";g.style.cursor="";null!=e&&(e.style.border= "visible"),null!=e&&(e.style.border="3px dotted lightGray"))}));Graph.fileSupport&&(mxEvent.addListener(g,"dragover",mxUtils.bind(this,function(a){null!=e?e.style.border="3px dotted rgb(254, 137, 12)":g.style.border="3px dotted rgb(254, 137, 12)";a.dataTransfer.dropEffect="copy";g.style.cursor="copy";this.sidebar.hideTooltip();a.stopPropagation();a.preventDefault()})),mxEvent.addListener(g,"drop",mxUtils.bind(this,function(a){g.style.border="3px solid transparent";g.style.cursor="";null!=e&&(e.style.border=
"3px dotted lightGray");0<a.dataTransfer.files.length&&this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(c,d,k,n,m,u,q){if(null!=c&&"image/"==d.substring(0,6)){var v="shape\x3dimage;verticalLabelPosition\x3dbottom;verticalAlign\x3dtop;aspect\x3dfixed;image\x3d"+this.convertDataUri(c),v=[new mxCell("",new mxGeometry(0,0,m,u),v)];v[0].vertex=!0;D(v,new mxRectangle(0,0,m,u),a,mxEvent.isAltDown(a)?null:q.substring(0,q.lastIndexOf(".")).replace(/_/g," "))}else{q=!1; "3px dotted lightGray");0<a.dataTransfer.files.length&&this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(c,d,k,n,m,u,v){if(null!=c&&"image/"==d.substring(0,6)){var q="shape\x3dimage;verticalLabelPosition\x3dbottom;verticalAlign\x3dtop;aspect\x3dfixed;image\x3d"+this.convertDataUri(c),q=[new mxCell("",new mxGeometry(0,0,m,u),q)];q[0].vertex=!0;D(q,new mxRectangle(0,0,m,u),a,mxEvent.isAltDown(a)?null:v.substring(0,v.lastIndexOf(".")).replace(/_/g," "))}else{v=!1;
if(null!=c&&"text/xml"==d)if(c=mxUtils.parseXml(c),"mxlibrary"==c.documentElement.nodeName)try{var x=JSON.parse(mxUtils.getTextContent(c.documentElement));f(x,g);b=b.concat(x);y(a);this.spinner.stop();q=!0}catch(A){}else if("mxfile"==c.documentElement.nodeName)try{x=mxUtils.getTextContent(c.documentElement.getElementsByTagName("diagram")[0]),v=this.stringToCells(this.editor.graph.decompress(x)),D(v,new mxRectangle(0,0,m,u),a),q=!0}catch(z){}q||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}))}null!= if(null!=c&&"text/xml"==d)if(c=mxUtils.parseXml(c),"mxlibrary"==c.documentElement.nodeName)try{var x=JSON.parse(mxUtils.getTextContent(c.documentElement));f(x,g);b=b.concat(x);y(a);this.spinner.stop();v=!0}catch(A){}else if("mxfile"==c.documentElement.nodeName)try{x=mxUtils.getTextContent(c.documentElement.getElementsByTagName("diagram")[0]),q=this.stringToCells(this.editor.graph.decompress(x)),D(q,new mxRectangle(0,0,m,u),a),v=!0}catch(z){}v||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}))}null!=
e&&(null!=e.parentNode&&0<b.length)&&(e.parentNode.removeChild(e),e=null)}));a.stopPropagation();a.preventDefault()})),mxEvent.addListener(g,"dragleave",function(a){null!=e?e.style.border="3px dotted lightGray":(g.style.border="3px solid transparent",g.style.cursor="");a.stopPropagation();a.preventDefault()}));u=u.cloneNode(!1);u.setAttribute("src",IMAGE_PATH+"/edit.gif");u.setAttribute("title",mxResources.get("edit"));v.insertBefore(u,v.firstChild);mxEvent.addListener(u,"click",z);mxEvent.addListener(g, e&&(null!=e.parentNode&&0<b.length)&&(e.parentNode.removeChild(e),e=null)}));a.stopPropagation();a.preventDefault()})),mxEvent.addListener(g,"dragleave",function(a){null!=e?e.style.border="3px dotted lightGray":(g.style.border="3px solid transparent",g.style.cursor="");a.stopPropagation();a.preventDefault()}));u=u.cloneNode(!1);u.setAttribute("src",IMAGE_PATH+"/edit.gif");u.setAttribute("title",mxResources.get("edit"));v.insertBefore(u,v.firstChild);mxEvent.addListener(u,"click",z);mxEvent.addListener(g,
"dblclick",function(a){mxEvent.getSource(a)==g&&z(a)});u=u.cloneNode(!1);u.setAttribute("src",EditorUi.plusImage);u.setAttribute("title",mxResources.get("add"));v.insertBefore(u,v.firstChild);!this.isOffline()&&".scratchpad"==a.title&&(c=document.createElement("span"),c.setAttribute("title",mxResources.get("help")),c.style.cssText="color:gray;text-decoration:none;",c.className="geButton",mxUtils.write(c,"?"),mxEvent.addGestureListeners(c,mxUtils.bind(this,function(a){window.open("https://support.draw.io/questions/10420280"); "dblclick",function(a){mxEvent.getSource(a)==g&&z(a)});u=u.cloneNode(!1);u.setAttribute("src",EditorUi.plusImage);u.setAttribute("title",mxResources.get("add"));v.insertBefore(u,v.firstChild);!this.isOffline()&&".scratchpad"==a.title&&(c=document.createElement("span"),c.setAttribute("title",mxResources.get("help")),c.style.cssText="color:gray;text-decoration:none;",c.className="geButton",mxUtils.write(c,"?"),mxEvent.addGestureListeners(c,mxUtils.bind(this,function(a){window.open("https://support.draw.io/questions/10420280");
mxEvent.consume(a)})),v.insertBefore(c,v.firstChild));var C=null;mxEvent.addListener(u,"click",B)}q.appendChild(v);q.style.paddingRight=18*v.childNodes.length+"px"};"1"==urlParams.offline?EditorUi.prototype.footerHeight=4:("atlas"==uiTheme?("undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground=mxClient.IS_QUIRKS?"none":"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= mxEvent.consume(a)})),v.insertBefore(c,v.firstChild));var C=null;mxEvent.addListener(u,"click",B)}q.appendChild(v);q.style.paddingRight=18*v.childNodes.length+"px"};"1"==urlParams.offline?EditorUi.prototype.footerHeight=4:("atlas"==uiTheme?("undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground=mxClient.IS_QUIRKS?"none":"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=
@ -7852,8 +7851,8 @@ a=function(a,b,c){var d;d=4-b;a<<=6*d;for(b=2;b>=d;)c.push(String.fromCharCode(a
e+=1,4===e&&(a(c,e,g),c=e=0);return 0<e&&a(c,e,g),g.join("")}}(),function(){var a,b,c,d,e,f,g,k,l;if(m.Util.hmac=function(b,d){return a(c(k(b),k(d),b.length,d.length))},m.Util.sha1=function(b){return a(d(k(b),b.length))},m.Util.sha256=function(b){return a(e(k(b),b.length))},m.Env.require)try{b=m.Env.require("crypto"),b.createHmac&&b.createHash&&(m.Util.hmac=function(a,c){var d;return d=b.createHmac("sha1",c),d.update(a),d.digest("base64")},m.Util.sha1=function(a){var c;return c=b.createHash("sha1"), e+=1,4===e&&(a(c,e,g),c=e=0);return 0<e&&a(c,e,g),g.join("")}}(),function(){var a,b,c,d,e,f,g,k,l;if(m.Util.hmac=function(b,d){return a(c(k(b),k(d),b.length,d.length))},m.Util.sha1=function(b){return a(d(k(b),b.length))},m.Util.sha256=function(b){return a(e(k(b),b.length))},m.Env.require)try{b=m.Env.require("crypto"),b.createHmac&&b.createHash&&(m.Util.hmac=function(a,c){var d;return d=b.createHmac("sha1",c),d.update(a),d.digest("base64")},m.Util.sha1=function(a){var c;return c=b.createHash("sha1"),
c.update(a),c.digest("base64")},m.Util.sha256=function(a){var c;return c=b.createHash("sha256"),c.update(a),c.digest("base64")})}catch(n){}return c=function(a,b,c,e){var f,g,k,l;return 16<b.length&&(b=d(b,e)),k=function(){var a,c;c=[];for(g=a=0;16>a;g=++a)c.push(909522486^b[g]);return c}(),l=function(){var a,c;c=[];for(g=a=0;16>a;g=++a)c.push(1549556828^b[g]);return c}(),f=d(k.concat(a),64+c),d(l.concat(f),84)},d=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,u,v,s,t,x,z;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>> c.update(a),c.digest("base64")},m.Util.sha256=function(a){var c;return c=b.createHash("sha256"),c.update(a),c.digest("base64")})}catch(n){}return c=function(a,b,c,e){var f,g,k,l;return 16<b.length&&(b=d(b,e)),k=function(){var a,c;c=[];for(g=a=0;16>a;g=++a)c.push(909522486^b[g]);return c}(),l=function(){var a,c;c=[];for(g=a=0;16>a;g=++a)c.push(1549556828^b[g]);return c}(),f=d(k.concat(a),64+c),d(l.concat(f),84)},d=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,u,v,s,t,x,z;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>>
6<<4)+15]=b<<3;t=Array(80);c=1732584193;e=4023233417;g=2562383102;l=271733878;n=3285377520;q=0;for(v=a.length;v>q;){d=c;f=e;k=g;m=l;p=n;for(u=z=0;80>z;u=++z)16>u?t[u]=0|a[q+u<<2>>2]:(s=(0|t[u-3<<2>>2])^(0|t[u-8<<2>>2])^(0|t[u-14<<2>>2])^(0|t[u-16<<2>>2]),t[u]=s<<1|s>>>31),x=((c<<5|c>>>27)+n|0)+t[u<<2>>2]|0,x=20>u?x+((e&g|~e&l)+1518500249|0)|0:40>u?x+((e^g^l)+1859775393|0)|0:60>u?x+((e&g|e&l|g&l)-1894007588)|0:x+((e^g^l)-899497514|0)|0,n=l,l=g,g=e<<30|e>>>2,e=c,c=x;c=d+c|0;e=f+e|0;g=k+g|0;l=m+l|0; 6<<4)+15]=b<<3;t=Array(80);c=1732584193;e=4023233417;g=2562383102;l=271733878;n=3285377520;q=0;for(v=a.length;v>q;){d=c;f=e;k=g;m=l;p=n;for(u=z=0;80>z;u=++z)16>u?t[u]=0|a[q+u<<2>>2]:(s=(0|t[u-3<<2>>2])^(0|t[u-8<<2>>2])^(0|t[u-14<<2>>2])^(0|t[u-16<<2>>2]),t[u]=s<<1|s>>>31),x=((c<<5|c>>>27)+n|0)+t[u<<2>>2]|0,x=20>u?x+((e&g|~e&l)+1518500249|0)|0:40>u?x+((e^g^l)+1859775393|0)|0:60>u?x+((e&g|e&l|g&l)-1894007588)|0:x+((e^g^l)-899497514|0)|0,n=l,l=g,g=e<<30|e>>>2,e=c,c=x;c=d+c|0;e=f+e|0;g=k+g|0;l=m+l|0;
n=p+n|0;q=q+16|0}return[c,e,g,l,n]},e=function(a,b){var c,d,e,k,l,m,n,p,q,u,v,s,t,x,z,A,B,C,F,Y,ba,W,S,ha,da,$,fa,ja,ca,la;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>>6<<4)+15]=b<<3;ca=Array(80);c=f[0];e=f[1];l=f[2];p=f[3];u=f[4];s=f[5];x=f[6];Y=f[7];W=0;for(ha=a.length;ha>W;){d=c;k=e;m=l;q=p;v=u;t=s;z=x;ba=Y;for(S=la=0;64>la;S=++la)16>S?ja=ca[S]=0|a[W+S<<2>>2]:(B=0|ca[S-15<<2>>2],A=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,F=0|ca[S-2<<2>>2],C=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10,ja=ca[S]=(A+(0|ca[S-7<<2>>2])|0)+ n=p+n|0;q=q+16|0}return[c,e,g,l,n]},e=function(a,b){var c,d,e,k,l,n,m,p,q,u,v,s,t,x,z,A,B,C,F,Y,ba,W,S,ha,da,$,fa,ja,ca,la;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>>6<<4)+15]=b<<3;ca=Array(80);c=f[0];e=f[1];l=f[2];p=f[3];u=f[4];s=f[5];x=f[6];Y=f[7];W=0;for(ha=a.length;ha>W;){d=c;k=e;n=l;q=p;v=u;t=s;z=x;ba=Y;for(S=la=0;64>la;S=++la)16>S?ja=ca[S]=0|a[W+S<<2>>2]:(B=0|ca[S-15<<2>>2],A=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,F=0|ca[S-2<<2>>2],C=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10,ja=ca[S]=(A+(0|ca[S-7<<2>>2])|0)+
(C+(0|ca[S-16<<2>>2])|0)|0),n=u&s^~u&x,da=c&e^c&l^e&l,$=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),fa=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),n=((Y+fa|0)+(n+ja|0)|0)+(0|g[S<<2>>2])|0,da=$+da|0,Y=x,x=s,s=u,u=p+n|0,p=l,l=e,e=c,c=n+da|0;c=d+c|0;e=k+e|0;l=m+l|0;p=q+p|0;u=v+u|0;s=t+s|0;x=z+x|0;Y=ba+Y|0;W+=16}return[c,e,l,p,u,s,x,Y]},f=[],g=[],function(){var a,b,c,d,e,k,l;b=function(a){return 4294967296*(a-Math.floor(a))|0};e=2;l=[];for(c=k=0;64>k;c=++k){for(;;){d=!0;for(a=2;e>=a*a;){if(0===e%a){d= (C+(0|ca[S-16<<2>>2])|0)|0),m=u&s^~u&x,da=c&e^c&l^e&l,$=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),fa=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),m=((Y+fa|0)+(m+ja|0)|0)+(0|g[S<<2>>2])|0,da=$+da|0,Y=x,x=s,s=u,u=p+m|0,p=l,l=e,e=c,c=m+da|0;c=d+c|0;e=k+e|0;l=n+l|0;p=q+p|0;u=v+u|0;s=t+s|0;x=z+x|0;Y=ba+Y|0;W+=16}return[c,e,l,p,u,s,x,Y]},f=[],g=[],function(){var a,b,c,d,e,k,l;b=function(a){return 4294967296*(a-Math.floor(a))|0};e=2;l=[];for(c=k=0;64>k;c=++k){for(;;){d=!0;for(a=2;e>=a*a;){if(0===e%a){d=
!1;break}a+=1}if(d)break;e+=1}8>c&&(f[c]=b(Math.pow(e,0.5)));g[c]=b(Math.pow(e,1/3));l.push(e+=1)}return l}(),a=function(a){var b,c,d,e,f;e="";b=0;for(d=4*a.length;d>b;)c=b,f=(a[c>>2]>>(3-(3&c)<<3)&255)<<16,c+=1,f|=(a[c>>2]>>(3-(3&c)<<3)&255)<<8,c+=1,f|=a[c>>2]>>(3-(3&c)<<3)&255,e+=l[f>>18&63],e+=l[f>>12&63],b+=1,e+=b>=d?"\x3d":l[f>>6&63],b+=1,e+=b>=d?"\x3d":l[63&f],b+=1;return e},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=function(a){var b,c,d,e;b=[];c=d=0;for(e=a.length;0<= !1;break}a+=1}if(d)break;e+=1}8>c&&(f[c]=b(Math.pow(e,0.5)));g[c]=b(Math.pow(e,1/3));l.push(e+=1)}return l}(),a=function(a){var b,c,d,e,f;e="";b=0;for(d=4*a.length;d>b;)c=b,f=(a[c>>2]>>(3-(3&c)<<3)&255)<<16,c+=1,f|=(a[c>>2]>>(3-(3&c)<<3)&255)<<8,c+=1,f|=a[c>>2]>>(3-(3&c)<<3)&255,e+=l[f>>18&63],e+=l[f>>12&63],b+=1,e+=b>=d?"\x3d":l[f>>6&63],b+=1,e+=b>=d?"\x3d":l[63&f],b+=1;return e},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=function(a){var b,c,d,e;b=[];c=d=0;for(e=a.length;0<=
e?e>d:d>e;c=0<=e?++d:--d)b[c>>2]|=(a.charCodeAt(c)&255)<<(3-(3&c)<<3);return b}}(),m.Util.Oauth=function(){function a(b){this._loaded=this._appHash=this._error=this._tokenKid=this._tokenKey=this._token=this._authCode=this._stateParam=this._secret=this._id=null;this.setCredentials(b)}return a.prototype.setCredentials=function(a){if(a.key)this._id=a.key;else{if(!a.token)throw Error("No API key supplied");this._id=null}return this._secret=a.secret||null,this._appHash=null,this._error=null,this._loaded= e?e>d:d>e;c=0<=e?++d:--d)b[c>>2]|=(a.charCodeAt(c)&255)<<(3-(3&c)<<3);return b}}(),m.Util.Oauth=function(){function a(b){this._loaded=this._appHash=this._error=this._tokenKid=this._tokenKey=this._token=this._authCode=this._stateParam=this._secret=this._id=null;this.setCredentials(b)}return a.prototype.setCredentials=function(a){if(a.key)this._id=a.key;else{if(!a.token)throw Error("No API key supplied");this._id=null}return this._secret=a.secret||null,this._appHash=null,this._error=null,this._loaded=
!0,this.reset(),a.token?(this._token=a.token,a.tokenKey&&(this._tokenKey=a.tokenKey,this._tokenKid=a.tokenKid)):a.oauthCode?this._authCode=a.oauthCode:a.oauthStateParam&&(this._stateParam=a.oauthStateParam),this},a.prototype.credentials=function(){var a;return a={},this._id&&(a.key=this._id),this._secret&&(a.secret=this._secret),null!==this._token?(a.token=this._token,this._tokenKey&&(a.tokenKey=this._tokenKey,a.tokenKid=this._tokenKid)):null!==this._authCode?a.oauthCode=this._authCode:null!==this._stateParam&& !0,this.reset(),a.token?(this._token=a.token,a.tokenKey&&(this._tokenKey=a.tokenKey,this._tokenKid=a.tokenKid)):a.oauthCode?this._authCode=a.oauthCode:a.oauthStateParam&&(this._stateParam=a.oauthStateParam),this},a.prototype.credentials=function(){var a;return a={},this._id&&(a.key=this._id),this._secret&&(a.secret=this._secret),null!==this._token?(a.token=this._token,this._tokenKey&&(a.tokenKey=this._tokenKey,a.tokenKid=this._tokenKid)):null!==this._authCode?a.oauthCode=this._authCode:null!==this._stateParam&&
@ -8126,7 +8125,7 @@ ChatWindow.prototype.htmlEscape=function(a){return a.replace(/&/g,"\x26amp;").re
(new Image).src=mxGraph.prototype.warningImage.src;window.openWindow=mxUtils.bind(this,function(a,c,d){var f=window.open(a);null==f||void 0===f?this.showDialog((new PopupDialog(this,a,c,d)).container,320,140,!0,!0):null!=c&&c()});this.updateUi();a=document.createElement("canvas");this.canvasSupported=!(!a.getContext||!a.getContext("2d"));window.showOpenAlert=mxUtils.bind(this,function(a){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(a)});this.isOffline()||(EditDataDialog.placeholderHelpLink= (new Image).src=mxGraph.prototype.warningImage.src;window.openWindow=mxUtils.bind(this,function(a,c,d){var f=window.open(a);null==f||void 0===f?this.showDialog((new PopupDialog(this,a,c,d)).container,320,140,!0,!0):null!=c&&c()});this.updateUi();a=document.createElement("canvas");this.canvasSupported=!(!a.getContext||!a.getContext("2d"));window.showOpenAlert=mxUtils.bind(this,function(a){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(a)});this.isOffline()||(EditDataDialog.placeholderHelpLink=
"https://support.draw.io/questions/9338941");ColorDialog.recentColors=mxSettings.getRecentColors(ColorDialog.recentColors);this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(a=0;a<App.DrawPlugins.length;a++)try{App.DrawPlugins[a](this)}catch(d){null!=window.console&&console.log("Plugin Error:",d,App.DrawPlugins[a])}window.Draw.loadPlugin=function(a){a(this)}}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google"; "https://support.draw.io/questions/9338941");ColorDialog.recentColors=mxSettings.getRecentColors(ColorDialog.recentColors);this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(a=0;a<App.DrawPlugins.length;a++)try{App.DrawPlugins[a](this)}catch(d){null!=window.console&&console.log("Plugin Error:",d,App.DrawPlugins[a])}window.Draw.loadPlugin=function(a){a(this)}}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";
App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.DROPBOX_APPKEY="libwls2fa9szdji"; App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.DROPBOX_APPKEY="libwls2fa9szdji";
App.pluginRegistry={"4xAKTrabTpTzahoLthkwPNUn":"/plugins/explore.js",ex:"/plugins/explore.js",p1:"/plugins/p1.js",ac:"/plugins/connect.js",acj:"/plugins/connectJira.js",voice:"/plugins/voice.js",tips:"/plugins/tooltips.js",svgdata:"/plugins/svgdata.js",doors:"/plugins/doors.js",electron:"plugins/electron.js",number:"/plugins/number.js",sql:"/plugins/sql.js",props:"/plugins/props.js",text:"/plugins/text.js"}; App.pluginRegistry={"4xAKTrabTpTzahoLthkwPNUn":"/plugins/explore.js",ex:"/plugins/explore.js",p1:"/plugins/p1.js",ac:"/plugins/connect.js",acj:"/plugins/connectJira.js",voice:"/plugins/voice.js",tips:"/plugins/tooltips.js",svgdata:"/plugins/svgdata.js",doors:"/plugins/doors.js",electron:"plugins/electron.js",number:"/plugins/number.js",sql:"/plugins/sql.js",props:"/plugins/props.js",text:"/plugins/text.js",csv:"/plugins/csv.js"};
App.getStoredMode=function(){var a=null;if("undefined"!=typeof Storage)for(var c=document.cookie.split(";"),f=0;f<c.length;f++){var d=mxUtils.trim(c[f]);if("MODE\x3d"==d.substring(0,5)){a=d.substring(5);break}}return a}; App.getStoredMode=function(){var a=null;if("undefined"!=typeof Storage)for(var c=document.cookie.split(";"),f=0;f<c.length;f++){var d=mxUtils.trim(c[f]);if("MODE\x3d"==d.substring(0,5)){a=d.substring(5);break}}return a};
(function(){if(!mxClient.IS_CHROMEAPP&&("1"!=urlParams.offline&&("db.draw.io"==window.location.hostname&&null==urlParams.mode&&(urlParams.mode="dropbox"),App.mode=urlParams.mode,null==App.mode&&(App.mode=App.getStoredMode())),null!=window.mxscript&&("1"!=urlParams.embed&&("function"===typeof window.DriveClient&&("0"!=urlParams.gapi&&isSvgBrowser&&(null==document.documentMode||10<=document.documentMode)?App.mode==App.MODE_GOOGLE||null!=urlParams.state&&""==window.location.hash||null!=window.location.hash&& (function(){if(!mxClient.IS_CHROMEAPP&&("1"!=urlParams.offline&&("db.draw.io"==window.location.hostname&&null==urlParams.mode&&(urlParams.mode="dropbox"),App.mode=urlParams.mode,null==App.mode&&(App.mode=App.getStoredMode())),null!=window.mxscript&&("1"!=urlParams.embed&&("function"===typeof window.DriveClient&&("0"!=urlParams.gapi&&isSvgBrowser&&(null==document.documentMode||10<=document.documentMode)?App.mode==App.MODE_GOOGLE||null!=urlParams.state&&""==window.location.hash||null!=window.location.hash&&
"#G"==window.location.hash.substring(0,2)?mxscript("https://apis.google.com/js/api.js"):"0"==urlParams.chrome&&(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?App.mode==App.MODE_DROPBOX||null!=window.location.hash&&"#D"==window.location.hash.substring(0,2)?mxscript("https://www.dropbox.com/static/api/1/dropins.js",null,"dropboxjs",App.DROPBOX_APPKEY):"0"==urlParams.chrome&& "#G"==window.location.hash.substring(0,2)?mxscript("https://apis.google.com/js/api.js"):"0"==urlParams.chrome&&(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?App.mode==App.MODE_DROPBOX||null!=window.location.hash&&"#D"==window.location.hash.substring(0,2)?mxscript("https://www.dropbox.com/static/api/1/dropins.js",null,"dropboxjs",App.DROPBOX_APPKEY):"0"==urlParams.chrome&&

123
war/js/atlas.min.js vendored
View file

@ -3089,25 +3089,25 @@ var FilenameDialog=function(a,c,f,d,b,e,g,k,l){l=null!=l?l:!0;var m,n,p=document
d(t.value)});q.className="geBtn gePrimaryBtn";this.init=function(){if(!(null==b&&null!=g)&&(t.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?t.select():document.execCommand("selectAll",!1,null),Graph.fileSupport)){var a=p.parentNode,d=null;mxEvent.addListener(a,"dragleave",function(b){null!=d&&(d.style.backgroundColor="",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(a,"dragover",mxUtils.bind(this,function(b){if(null==d&&(!mxClient.IS_IE||10<document.documentMode))d= d(t.value)});q.className="geBtn gePrimaryBtn";this.init=function(){if(!(null==b&&null!=g)&&(t.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?t.select():document.execCommand("selectAll",!1,null),Graph.fileSupport)){var a=p.parentNode,d=null;mxEvent.addListener(a,"dragleave",function(b){null!=d&&(d.style.backgroundColor="",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(a,"dragover",mxUtils.bind(this,function(b){if(null==d&&(!mxClient.IS_IE||10<document.documentMode))d=
t,d.style.backgroundColor="#ebf2f9";b.stopPropagation();b.preventDefault()}));mxEvent.addListener(a,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(t.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),q.click());b.stopPropagation();b.preventDefault()}))}};n=document.createElement("td");n.appendChild(t);m.appendChild(n);(null!=b||null==g)&&s.appendChild(m);null!=g&&(m=document.createElement("tr"), t,d.style.backgroundColor="#ebf2f9";b.stopPropagation();b.preventDefault()}));mxEvent.addListener(a,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(t.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),q.click());b.stopPropagation();b.preventDefault()}))}};n=document.createElement("td");n.appendChild(t);m.appendChild(n);(null!=b||null==g)&&s.appendChild(m);null!=g&&(m=document.createElement("tr"),
n=document.createElement("td"),n.colSpan=2,n.appendChild(g),m.appendChild(n),s.appendChild(m));m=document.createElement("tr");n=document.createElement("td");n.colSpan=2;n.style.paddingTop="20px";n.style.whiteSpace="nowrap";n.setAttribute("align","right");c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});c.className="geBtn";a.editor.cancelFirst&&n.appendChild(c);null!=k&&(f=mxUtils.button(mxResources.get("help"),function(){window.open(k)}),f.className="geBtn",n.appendChild(f)); n=document.createElement("td"),n.colSpan=2,n.appendChild(g),m.appendChild(n),s.appendChild(m));m=document.createElement("tr");n=document.createElement("td");n.colSpan=2;n.style.paddingTop="20px";n.style.whiteSpace="nowrap";n.setAttribute("align","right");c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});c.className="geBtn";a.editor.cancelFirst&&n.appendChild(c);null!=k&&(f=mxUtils.button(mxResources.get("help"),function(){window.open(k)}),f.className="geBtn",n.appendChild(f));
mxEvent.addListener(t,"keypress",function(b){13==b.keyCode&&q.click()});n.appendChild(q);a.editor.cancelFirst||n.appendChild(c);m.appendChild(n);s.appendChild(m);p.appendChild(s);this.container=p},TextareaDialog=function(a,c,f,d,b,e,g,k,l,m){g=null!=g?g:300;k=null!=k?k:120;m=null!=m?m:!1;var n,p,s=document.createElement("table"),t=document.createElement("tbody");n=document.createElement("tr");p=document.createElement("td");p.style.fontSize="10pt";p.style.width="100px";mxUtils.write(p,c);n.appendChild(p); mxEvent.addListener(t,"keypress",function(b){13==b.keyCode&&q.click()});n.appendChild(q);a.editor.cancelFirst||n.appendChild(c);m.appendChild(n);s.appendChild(m);p.appendChild(s);this.container=p},TextareaDialog=function(a,c,f,d,b,e,g,k,l,m,n){g=null!=g?g:300;k=null!=k?k:120;m=null!=m?m:!1;var p,s,t=document.createElement("table"),q=document.createElement("tbody");p=document.createElement("tr");s=document.createElement("td");s.style.fontSize="10pt";s.style.width="100px";mxUtils.write(s,c);p.appendChild(s);
t.appendChild(n);n=document.createElement("tr");p=document.createElement("td");var q=document.createElement("textarea");mxUtils.write(q,f||"");q.style.resize="none";q.style.width=g+"px";q.style.height=k+"px";this.textarea=q;this.init=function(){q.focus();q.scrollTop=0};p.appendChild(q);n.appendChild(p);t.appendChild(n);n=document.createElement("tr");p=document.createElement("td");p.style.paddingTop="14px";p.style.whiteSpace="nowrap";p.setAttribute("align","right");c=mxUtils.button(e||mxResources.get("cancel"), q.appendChild(p);p=document.createElement("tr");s=document.createElement("td");var u=document.createElement("textarea");n&&u.setAttribute("wrap","off");mxUtils.write(u,f||"");u.style.resize="none";u.style.width=g+"px";u.style.height=k+"px";this.textarea=u;this.init=function(){u.focus();u.scrollTop=0};s.appendChild(u);p.appendChild(s);q.appendChild(p);p=document.createElement("tr");s=document.createElement("td");s.style.paddingTop="14px";s.style.whiteSpace="nowrap";s.setAttribute("align","right");
function(){a.hideDialog();null!=b&&b()});c.className="geBtn";a.editor.cancelFirst&&p.appendChild(c);null!=l&&l(p);null!=d&&(l=mxUtils.button(mxResources.get("apply"),function(){m||a.hideDialog();d(q.value)}),l.className="geBtn gePrimaryBtn",p.appendChild(l));a.editor.cancelFirst||p.appendChild(c);n.appendChild(p);t.appendChild(n);s.appendChild(t);this.container=s},EditDiagramDialog=function(a){var c=document.createElement("div");c.style.textAlign="right";var f=document.createElement("textarea");f.setAttribute("wrap", c=mxUtils.button(e||mxResources.get("cancel"),function(){a.hideDialog();null!=b&&b()});c.className="geBtn";a.editor.cancelFirst&&s.appendChild(c);null!=l&&l(s);null!=d&&(l=mxUtils.button(mxResources.get("apply"),function(){m||a.hideDialog();d(u.value)}),l.className="geBtn gePrimaryBtn",s.appendChild(l));a.editor.cancelFirst||s.appendChild(c);p.appendChild(s);q.appendChild(p);t.appendChild(q);this.container=t},EditDiagramDialog=function(a){var c=document.createElement("div");c.style.textAlign="right";
"off");f.style.overflow="auto";f.style.resize="none";f.style.width="600px";f.style.height="370px";f.style.marginBottom="16px";f.value=mxUtils.getPrettyXml(a.editor.getGraphXml());c.appendChild(f);this.init=function(){f.focus()};Graph.fileSupport&&(f.addEventListener("dragover",function(b){b.stopPropagation();b.preventDefault()},!1),f.addEventListener("drop",function(b){b.stopPropagation();b.preventDefault();if(0<b.dataTransfer.files.length){b=b.dataTransfer.files[0];var d=new FileReader;d.onload= var f=document.createElement("textarea");f.setAttribute("wrap","off");f.style.overflow="auto";f.style.resize="none";f.style.width="600px";f.style.height="370px";f.style.marginBottom="16px";f.value=mxUtils.getPrettyXml(a.editor.getGraphXml());c.appendChild(f);this.init=function(){f.focus()};Graph.fileSupport&&(f.addEventListener("dragover",function(b){b.stopPropagation();b.preventDefault()},!1),f.addEventListener("drop",function(b){b.stopPropagation();b.preventDefault();if(0<b.dataTransfer.files.length){b=
function(b){f.value=b.target.result};d.readAsText(b)}else f.value=a.extractGraphModelFromEvent(b)},!1));var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.className="geBtn";a.editor.cancelFirst&&c.appendChild(d);var b=document.createElement("select");b.style.width="180px";b.className="geBtn";if(a.editor.graph.isEnabled()){var e=document.createElement("option");e.setAttribute("value","replace");mxUtils.write(e,mxResources.get("replaceExistingDrawing"));b.appendChild(e)}e= b.dataTransfer.files[0];var d=new FileReader;d.onload=function(b){f.value=b.target.result};d.readAsText(b)}else f.value=a.extractGraphModelFromEvent(b)},!1));var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.className="geBtn";a.editor.cancelFirst&&c.appendChild(d);var b=document.createElement("select");b.style.width="180px";b.className="geBtn";if(a.editor.graph.isEnabled()){var e=document.createElement("option");e.setAttribute("value","replace");mxUtils.write(e,mxResources.get("replaceExistingDrawing"));
document.createElement("option");e.setAttribute("value","new");mxUtils.write(e,mxResources.get("openInNewWindow"));null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime||b.appendChild(e);a.editor.graph.isEnabled()&&(e=document.createElement("option"),e.setAttribute("value","import"),mxUtils.write(e,mxResources.get("addToExistingDrawing")),b.appendChild(e));c.appendChild(b);e=mxUtils.button(mxResources.get("ok"),function(){var d=a.editor.graph.zapGremlins(mxUtils.trim(f.value)),e=null;if("new"== b.appendChild(e)}e=document.createElement("option");e.setAttribute("value","new");mxUtils.write(e,mxResources.get("openInNewWindow"));null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime||b.appendChild(e);a.editor.graph.isEnabled()&&(e=document.createElement("option"),e.setAttribute("value","import"),mxUtils.write(e,mxResources.get("addToExistingDrawing")),b.appendChild(e));c.appendChild(b);e=mxUtils.button(mxResources.get("ok"),function(){var d=a.editor.graph.zapGremlins(mxUtils.trim(f.value)),
b.value)window.openFile=new OpenFile(function(){a.hideDialog();window.openFile=null}),window.openFile.setData(d,null),window.open(a.getUrl());else if("replace"==b.value){a.editor.graph.model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(d).documentElement),a.hideDialog()}catch(c){e=c}finally{a.editor.graph.model.endUpdate()}}else if("import"==b.value){a.editor.graph.model.beginUpdate();try{var m=mxUtils.parseXml(d),n=new mxGraphModel;(new mxCodec(m)).decode(m.documentElement,n);var p=n.getChildren(n.getChildAt(n.getRoot(), e=null;if("new"==b.value)window.openFile=new OpenFile(function(){a.hideDialog();window.openFile=null}),window.openFile.setData(d,null),window.open(a.getUrl());else if("replace"==b.value){a.editor.graph.model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(d).documentElement),a.hideDialog()}catch(c){e=c}finally{a.editor.graph.model.endUpdate()}}else if("import"==b.value){a.editor.graph.model.beginUpdate();try{var m=mxUtils.parseXml(d),n=new mxGraphModel;(new mxCodec(m)).decode(m.documentElement,
0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){e=s}finally{a.editor.graph.model.endUpdate()}}null!=e&&mxUtils.alert(e.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=n.value,a=b.lastIndexOf(".");n.value=0<a?b.substring(0,a+1)+p.value:b+"."+p.value;"xml"===p.value?(s.setAttribute("disabled","true"),t.setAttribute("disabled","true"),q.setAttribute("disabled", n);var p=n.getChildren(n.getChildAt(n.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){e=s}finally{a.editor.graph.model.endUpdate()}}null!=e&&mxUtils.alert(e.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=n.value,a=b.lastIndexOf(".");n.value=0<a?b.substring(0,a+1)+p.value:b+"."+p.value;"xml"===p.value?(s.setAttribute("disabled","true"),
"true"),v.setAttribute("disabled","true")):(s.removeAttribute("disabled"),t.removeAttribute("disabled"),q.removeAttribute("disabled"),v.removeAttribute("disabled"));"png"===p.value||"svg"===p.value?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")}function f(){t.style.backgroundColor=t.value*q.value>MAX_AREA||0>=t.value?"red":"";q.style.backgroundColor=t.value*q.value>MAX_AREA||0>=q.value?"red":""}var d=a.editor.graph,b=d.getGraphBounds(),e=d.view.scale,g=Math.ceil(b.width/e),k= t.setAttribute("disabled","true"),q.setAttribute("disabled","true"),v.setAttribute("disabled","true")):(s.removeAttribute("disabled"),t.removeAttribute("disabled"),q.removeAttribute("disabled"),v.removeAttribute("disabled"));"png"===p.value||"svg"===p.value?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")}function f(){t.style.backgroundColor=t.value*q.value>MAX_AREA||0>=t.value?"red":"";q.style.backgroundColor=t.value*q.value>MAX_AREA||0>=q.value?"red":""}var d=a.editor.graph,b=
Math.ceil(b.height/e),l,e=document.createElement("table"),m=document.createElement("tbody");e.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";l.style.width="100px";mxUtils.write(l,mxResources.get("filename")+":");b.appendChild(l);var n=document.createElement("input");n.setAttribute("value",a.editor.getOrCreateFilename());n.style.width="180px";l=document.createElement("td");l.appendChild(n);b.appendChild(l);m.appendChild(b); d.getGraphBounds(),e=d.view.scale,g=Math.ceil(b.width/e),k=Math.ceil(b.height/e),l,e=document.createElement("table"),m=document.createElement("tbody");e.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";l.style.width="100px";mxUtils.write(l,mxResources.get("filename")+":");b.appendChild(l);var n=document.createElement("input");n.setAttribute("value",a.editor.getOrCreateFilename());n.style.width="180px";l=document.createElement("td");
b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("format")+":");b.appendChild(l);var p=document.createElement("select");p.style.width="180px";l=document.createElement("option");l.setAttribute("value","png");mxUtils.write(l,mxResources.get("formatPng"));p.appendChild(l);l=document.createElement("option");ExportDialog.showGifOption&&(l.setAttribute("value","gif"),mxUtils.write(l,mxResources.get("formatGif")),p.appendChild(l));l=document.createElement("option"); l.appendChild(n);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("format")+":");b.appendChild(l);var p=document.createElement("select");p.style.width="180px";l=document.createElement("option");l.setAttribute("value","png");mxUtils.write(l,mxResources.get("formatPng"));p.appendChild(l);l=document.createElement("option");ExportDialog.showGifOption&&(l.setAttribute("value","gif"),mxUtils.write(l,mxResources.get("formatGif")),
l.setAttribute("value","jpg");mxUtils.write(l,mxResources.get("formatJpg"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","pdf");mxUtils.write(l,mxResources.get("formatPdf"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","svg");mxUtils.write(l,mxResources.get("formatSvg"));p.appendChild(l);ExportDialog.showXmlOption&&(l=document.createElement("option"),l.setAttribute("value","xml"),mxUtils.write(l,mxResources.get("formatXml")),p.appendChild(l)); p.appendChild(l));l=document.createElement("option");l.setAttribute("value","jpg");mxUtils.write(l,mxResources.get("formatJpg"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","pdf");mxUtils.write(l,mxResources.get("formatPdf"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","svg");mxUtils.write(l,mxResources.get("formatSvg"));p.appendChild(l);ExportDialog.showXmlOption&&(l=document.createElement("option"),l.setAttribute("value","xml"),mxUtils.write(l,
l=document.createElement("td");l.appendChild(p);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("zoom")+" (%):");b.appendChild(l);var s=document.createElement("input");s.setAttribute("type","number");s.setAttribute("value","100");s.style.width="180px";l=document.createElement("td");l.appendChild(s);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize= mxResources.get("formatXml")),p.appendChild(l));l=document.createElement("td");l.appendChild(p);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("zoom")+" (%):");b.appendChild(l);var s=document.createElement("input");s.setAttribute("type","number");s.setAttribute("value","100");s.style.width="180px";l=document.createElement("td");l.appendChild(s);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");
"10pt";mxUtils.write(l,mxResources.get("width")+":");b.appendChild(l);var t=document.createElement("input");t.setAttribute("value",g);t.style.width="180px";l=document.createElement("td");l.appendChild(t);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("height")+":");b.appendChild(l);var q=document.createElement("input");q.setAttribute("value",k);q.style.width="180px";l=document.createElement("td"); l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("width")+":");b.appendChild(l);var t=document.createElement("input");t.setAttribute("value",g);t.style.width="180px";l=document.createElement("td");l.appendChild(t);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("height")+":");b.appendChild(l);var q=document.createElement("input");q.setAttribute("value",k);q.style.width=
l.appendChild(q);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("background")+":");b.appendChild(l);var u=document.createElement("input");u.setAttribute("type","checkbox");u.checked=null==d.background||d.background==mxConstants.NONE;l=document.createElement("td");l.appendChild(u);mxUtils.write(l,mxResources.get("transparent"));b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l= "180px";l=document.createElement("td");l.appendChild(q);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("background")+":");b.appendChild(l);var u=document.createElement("input");u.setAttribute("type","checkbox");u.checked=null==d.background||d.background==mxConstants.NONE;l=document.createElement("td");l.appendChild(u);mxUtils.write(l,mxResources.get("transparent"));b.appendChild(l);m.appendChild(b);
document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("borderWidth")+":");b.appendChild(l);var v=document.createElement("input");v.setAttribute("type","number");v.setAttribute("value","0");v.style.width="180px";l=document.createElement("td");l.appendChild(v);b.appendChild(l);m.appendChild(b);e.appendChild(m);mxEvent.addListener(p,"change",c);c();mxEvent.addListener(s,"change",function(){var b=Math.max(0,parseFloat(s.value)||100)/100;s.value=parseFloat((100*b).toFixed(2)); b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("borderWidth")+":");b.appendChild(l);var v=document.createElement("input");v.setAttribute("type","number");v.setAttribute("value","0");v.style.width="180px";l=document.createElement("td");l.appendChild(v);b.appendChild(l);m.appendChild(b);e.appendChild(m);mxEvent.addListener(p,"change",c);c();mxEvent.addListener(s,"change",function(){var b=Math.max(0,parseFloat(s.value)||100)/100;
0<g?(t.value=Math.floor(g*b),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(t,"change",function(){var b=parseInt(t.value)/g;0<b?(s.value=parseFloat((100*b).toFixed(2)),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(q,"change",function(){var b=parseInt(q.value)/k;0<b?(s.value=parseFloat((100*b).toFixed(2)),t.value=Math.floor(g*b)):(s.value="100",t.value=g,q.value=k);f()});b=document.createElement("tr");l=document.createElement("td"); s.value=parseFloat((100*b).toFixed(2));0<g?(t.value=Math.floor(g*b),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(t,"change",function(){var b=parseInt(t.value)/g;0<b?(s.value=parseFloat((100*b).toFixed(2)),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(q,"change",function(){var b=parseInt(q.value)/k;0<b?(s.value=parseFloat((100*b).toFixed(2)),t.value=Math.floor(g*b)):(s.value="100",t.value=g,q.value=k);f()});b=document.createElement("tr");
l.setAttribute("align","right");l.style.paddingTop="22px";l.colSpan=2;var x=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(s.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=n.value,e=p.value,c=Math.max(0,parseFloat(s.value)||100)/100,f=Math.max(0,parseInt(v.value)),g=d.background;if(("svg"==e||"png"==e)&&u.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,e,g,c,f)}}));x.className="geBtn gePrimaryBtn"; l=document.createElement("td");l.setAttribute("align","right");l.style.paddingTop="22px";l.colSpan=2;var x=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(s.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=n.value,e=p.value,c=Math.max(0,parseFloat(s.value)||100)/100,f=Math.max(0,parseInt(v.value)),g=d.background;if(("svg"==e||"png"==e)&&u.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,e,g,c,f)}}));x.className=
var z=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});z.className="geBtn";a.editor.cancelFirst?(l.appendChild(z),l.appendChild(x)):(l.appendChild(x),l.appendChild(z));b.appendChild(l);m.appendChild(b);e.appendChild(m);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0; "geBtn gePrimaryBtn";var z=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});z.className="geBtn";a.editor.cancelFirst?(l.appendChild(z),l.appendChild(x)):(l.appendChild(x),l.appendChild(z));b.appendChild(l);m.appendChild(b);e.appendChild(m);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;
ExportDialog.exportFile=function(a,c,f,d,b,e){var g=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),c,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(g.getSvg(d,b,e)),c,f);else{var k=g.getGraphBounds(),l=mxUtils.createXmlDocument(),m=l.createElement("output");l.appendChild(m);l=new mxXmlCanvas2D(m);l.translate(Math.floor((e/b-k.x)/g.view.scale),Math.floor((e/b-k.y)/g.view.scale));l.scale(b/g.view.scale);(new mxImageExport).drawState(g.getView().getState(g.model.root), ExportDialog.exportFile=function(a,c,f,d,b,e){var g=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),c,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(g.getSvg(d,b,e)),c,f);else{var k=g.getGraphBounds(),l=mxUtils.createXmlDocument(),m=l.createElement("output");l.appendChild(m);l=new mxXmlCanvas2D(m);l.translate(Math.floor((e/b-k.x)/g.view.scale),Math.floor((e/b-k.y)/g.view.scale));l.scale(b/g.view.scale);(new mxImageExport).drawState(g.getView().getState(g.model.root),
l);m="xml\x3d"+encodeURIComponent(mxUtils.getXml(m));l=Math.ceil(k.width*b/g.view.scale+2*e);b=Math.ceil(k.height*b/g.view.scale+2*e);m.length<=MAX_REQUEST_SIZE&&l*b<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format\x3d"+f+"\x26filename\x3d"+encodeURIComponent(c)+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+l+"\x26h\x3d"+b+"\x26"+m)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}}; l);m="xml\x3d"+encodeURIComponent(mxUtils.getXml(m));l=Math.ceil(k.width*b/g.view.scale+2*e);b=Math.ceil(k.height*b/g.view.scale+2*e);m.length<=MAX_REQUEST_SIZE&&l*b<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format\x3d"+f+"\x26filename\x3d"+encodeURIComponent(c)+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+l+"\x26h\x3d"+b+"\x26"+m)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};
ExportDialog.saveLocalFile=function(a,c,f,d){c.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml\x3d"+encodeURIComponent(c)+"\x26filename\x3d"+encodeURIComponent(f)+"\x26format\x3d"+d)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))}; ExportDialog.saveLocalFile=function(a,c,f,d){c.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml\x3d"+encodeURIComponent(c)+"\x26filename\x3d"+encodeURIComponent(f)+"\x26format\x3d"+d)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};
@ -7360,45 +7360,44 @@ y.x/A.scale-A.translate.x)+4*e.gridSize),A=Math.ceil(Math.max(0,(y.y+y.height)/A
e.moveCells(B,20,20)}finally{e.getModel().endUpdate()}e.clearCellOverlays();A=a.editor.graph.view;y=a.editor.graph.getGraphBounds();g=Math.ceil(Math.max(0,y.x/A.scale-A.translate.x)+e.gridSize);A=Math.ceil(Math.max(0,(y.y+y.height)/A.scale-A.translate.y)+4*e.gridSize);a.editor.graph.setSelectionCells(a.editor.graph.importCells(e.getModel().getChildren(e.getDefaultParent()),g,A));a.editor.graph.scrollCellToVisible(a.editor.graph.getSelectionCell());e.destroy();d.parentNode.removeChild(d)}}}function d(){return"list"== e.moveCells(B,20,20)}finally{e.getModel().endUpdate()}e.clearCellOverlays();A=a.editor.graph.view;y=a.editor.graph.getGraphBounds();g=Math.ceil(Math.max(0,y.x/A.scale-A.translate.x)+e.gridSize);A=Math.ceil(Math.max(0,(y.y+y.height)/A.scale-A.translate.y)+4*e.gridSize);a.editor.graph.setSelectionCells(a.editor.graph.importCells(e.getModel().getChildren(e.getDefaultParent()),g,A));a.editor.graph.scrollCellToVisible(a.editor.graph.getSelectionCell());e.destroy();d.parentNode.removeChild(d)}}}function d(){return"list"==
g.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean":"plantUmlPng"==g.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml":"plantUmlSvg"==g.value?"@startuml\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml": g.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean":"plantUmlPng"==g.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml":"plantUmlSvg"==g.value?"@startuml\nskinparam shadowing false\nAlice -\x3e Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -\x3e Bob: Another authentication Request\nAlice \x3c-- Bob: another authentication Response\n@enduml":
";Example:\na-\x3eb\nb-\x3ec\nc-\x3ea\n"}var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.style.resize="none";e.style.width="100%";e.style.height="354px";e.style.marginBottom="16px";var g=document.createElement("select"),k=document.createElement("option");k.setAttribute("value","list");k.setAttribute("selected","selected");mxUtils.write(k,mxResources.get("list"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","diagram"); ";Example:\na-\x3eb\nb-\x3ec\nc-\x3ea\n"}var b=document.createElement("div");b.style.textAlign="right";var e=document.createElement("textarea");e.style.resize="none";e.style.width="100%";e.style.height="354px";e.style.marginBottom="16px";var g=document.createElement("select"),k=document.createElement("option");k.setAttribute("value","list");k.setAttribute("selected","selected");mxUtils.write(k,mxResources.get("list"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","diagram");
mxUtils.write(k,mxResources.get("diagram"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","plantUmlSvg");mxUtils.write(k,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var l=document.createElement("option");l.setAttribute("value","plantUmlPng");mxUtils.write(l,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");console.log(/.*\.draw\.io$/.test("www.draw.io"));console.log(/.*\.draw\.io$/.test("www2.draw.io"));console.log(/.*\.draw\.io$/.test("www.draw2.io")); mxUtils.write(k,mxResources.get("diagram"));g.appendChild(k);k=document.createElement("option");k.setAttribute("value","plantUmlSvg");mxUtils.write(k,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var l=document.createElement("option");l.setAttribute("value","plantUmlPng");mxUtils.write(l,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");/.*\.draw\.io$/.test(window.location.hostname)&&Graph.fileSupport&&!a.isOffline()&&(g.appendChild(k),g.appendChild(l));var m=
console.log(/.*\.draw\.io$/.test("www.draw.io2"));/.*\.draw\.io$/.test(window.location.hostname)&&Graph.fileSupport&&!a.isOffline()&&(g.appendChild(k),g.appendChild(l));var m=d();e.value=m;b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),e.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0<a.dataTransfer.files.length){a=a.dataTransfer.files[0];var b=new FileReader; d();e.value=m;b.appendChild(e);this.init=function(){e.focus()};Graph.fileSupport&&(e.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),e.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0<a.dataTransfer.files.length){a=a.dataTransfer.files[0];var b=new FileReader;b.onload=function(a){e.value=a.target.result};b.readAsText(a)}},!1));b.appendChild(g);mxEvent.addListener(g,"change",function(){var a=d();if(0==e.value.length||e.value==m)m=a,
b.onload=function(a){e.value=a.target.result};b.readAsText(a)}},!1));b.appendChild(g);mxEvent.addListener(g,"change",function(){var a=d();if(0==e.value.length||e.value==m)m=a,e.value=m});k=mxUtils.button(mxResources.get("close"),function(){e.value==m?a.hideDialog():a.confirm(mxResources.get("areYouSure"),function(){a.hideDialog()})});k.className="geBtn";a.editor.cancelFirst&&b.appendChild(k);l=mxUtils.button(mxResources.get("insert"),function(){a.hideDialog();f(e.value,g.value)});b.appendChild(l); e.value=m});k=mxUtils.button(mxResources.get("close"),function(){e.value==m?a.hideDialog():a.confirm(mxResources.get("areYouSure"),function(){a.hideDialog()})});k.className="geBtn";a.editor.cancelFirst&&b.appendChild(k);l=mxUtils.button(mxResources.get("insert"),function(){a.hideDialog();f(e.value,g.value)});b.appendChild(l);l.className="geBtn gePrimaryBtn";a.editor.cancelFirst||b.appendChild(k);this.container=b},NewDialog=function(a,c,f,d){function b(){if(d)f||a.hideDialog(),d(t,p.value);else{var b=
l.className="geBtn gePrimaryBtn";a.editor.cancelFirst||b.appendChild(k);this.container=b},NewDialog=function(a,c,f,d){function b(){if(d)f||a.hideDialog(),d(t,p.value);else{var b=p.value;if(null!=b&&0<b.length){var c=a.mode==App.MODE_ONEDRIVE||a.mode==App.MODE_GOOGLE&&(null==a.stateArg||null==a.stateArg.folderId)?a.mode:null;a.pickFolder(c,function(c){a.createFile(b,t,null!=s&&0<s.length?s:null,null,function(){a.hideDialog()},null,c)},c!=App.MODE_GOOGLE)}}}function e(a,b,c){null!=q&&(q.style.backgroundColor= p.value;if(null!=b&&0<b.length){var c=a.mode==App.MODE_ONEDRIVE||a.mode==App.MODE_GOOGLE&&(null==a.stateArg||null==a.stateArg.folderId)?a.mode:null;a.pickFolder(c,function(c){a.createFile(b,t,null!=s&&0<s.length?s:null,null,function(){a.hideDialog()},null,c)},c!=App.MODE_GOOGLE)}}}function e(a,b,c){null!=q&&(q.style.backgroundColor="transparent",q.style.border="1px solid transparent");t=b;s=c;q=a;q.style.backgroundColor="#e6eff8";q.style.border="1px solid #ccd9ea"}function g(a,c,d,f,k){var g=document.createElement("div");
"transparent",q.style.border="1px solid transparent");t=b;s=c;q=a;q.style.backgroundColor="#e6eff8";q.style.border="1px solid #ccd9ea"}function g(a,c,d,f,k){var g=document.createElement("div");g.className="geTemplate";g.style.height=z+"px";g.style.width=A+"px";null!=f&&0<f.length&&g.setAttribute("title",f);if(null!=a&&0<a.length){a.substring(0,a.length-4);g.style.backgroundImage="url("+TEMPLATE_PATH+"/"+a.substring(0,a.length-4)+".png)";g.style.backgroundPosition="center center";g.style.backgroundRepeat= g.className="geTemplate";g.style.height=z+"px";g.style.width=A+"px";null!=f&&0<f.length&&g.setAttribute("title",f);if(null!=a&&0<a.length){a.substring(0,a.length-4);g.style.backgroundImage="url("+TEMPLATE_PATH+"/"+a.substring(0,a.length-4)+".png)";g.style.backgroundPosition="center center";g.style.backgroundRepeat="no-repeat";var l=!1;mxEvent.addListener(g,"click",function(d){u.setAttribute("disabled","disabled");g.style.backgroundColor="transparent";g.style.border="1px solid transparent";mxUtils.get(TEMPLATE_PATH+
"no-repeat";var l=!1;mxEvent.addListener(g,"click",function(d){u.setAttribute("disabled","disabled");g.style.backgroundColor="transparent";g.style.border="1px solid transparent";mxUtils.get(TEMPLATE_PATH+"/"+a,mxUtils.bind(this,function(a){200==a.getStatus()&&(u.removeAttribute("disabled"),e(g,a.getText(),c),l&&b())}))});mxEvent.addListener(g,"dblclick",function(a){l=!0})}else g.innerHTML='\x3ctable width\x3d"100%" height\x3d"100%"\x3e\x3ctr\x3e\x3ctd align\x3d"center" valign\x3d"middle"\x3e'+mxResources.get(d)+ "/"+a,mxUtils.bind(this,function(a){200==a.getStatus()&&(u.removeAttribute("disabled"),e(g,a.getText(),c),l&&b())}))});mxEvent.addListener(g,"dblclick",function(a){l=!0})}else g.innerHTML='\x3ctable width\x3d"100%" height\x3d"100%"\x3e\x3ctr\x3e\x3ctd align\x3d"center" valign\x3d"middle"\x3e'+mxResources.get(d)+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",k&&e(g),mxEvent.addListener(g,"click",function(a){e(g)}),mxEvent.addListener(g,"dblclick",function(a){b()});v.appendChild(g)}function k(){function a(){for(var c=
"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",k&&e(g),mxEvent.addListener(g,"click",function(a){e(g)}),mxEvent.addListener(g,"dblclick",function(a){b()});v.appendChild(g)}function k(){function a(){for(var c=!0;b<B.length&&(c||0!=mxUtils.mod(b,30));)c=B[b++],g(c.url,c.libs,c.title,c.tooltip,c.select),c=!1}var b=0;mxEvent.addListener(v,"scroll",function(b){v.scrollTop+v.clientHeight>=v.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in y){var e=document.createElement("div"),f=mxResources.get(d), !0;b<B.length&&(c||0!=mxUtils.mod(b,30));)c=B[b++],g(c.url,c.libs,c.title,c.tooltip,c.select),c=!1}var b=0;mxEvent.addListener(v,"scroll",function(b){v.scrollTop+v.clientHeight>=v.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in y){var e=document.createElement("div"),f=mxResources.get(d),k=y[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18<f.length&&(f=f.substring(0,18)+"\x26hellip;");e.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;";
k=y[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18<f.length&&(f=f.substring(0,18)+"\x26hellip;");e.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;";e.setAttribute("title",f+" ("+k.length+")");mxUtils.write(e,e.getAttribute("title"));x.appendChild(e);null==c&&(c=e,c.style.backgroundColor="#ebf2f9");(function(d,f){mxEvent.addListener(e,"click",function(){c!=f&&(c.style.backgroundColor="",c=f,c.style.backgroundColor= e.setAttribute("title",f+" ("+k.length+")");mxUtils.write(e,e.getAttribute("title"));x.appendChild(e);null==c&&(c=e,c.style.backgroundColor="#ebf2f9");(function(d,f){mxEvent.addListener(e,"click",function(){c!=f&&(c.style.backgroundColor="",c=f,c.style.backgroundColor="#ebf2f9",v.scrollTop=0,v.innerHTML="",b=0,B=y[d],a())})})(d,e)}a()}f=null!=f?f:!0;var l=document.createElement("div");l.style.height="100%";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.height="46px";l.appendChild(m);
"#ebf2f9",v.scrollTop=0,v.innerHTML="",b=0,B=y[d],a())})})(d,e)}a()}f=null!=f?f:!0;var l=document.createElement("div");l.style.height="100%";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.height="46px";l.appendChild(m);var n=document.createElement("img");n.setAttribute("border","0");n.setAttribute("align","absmiddle");n.style.width="40px";n.style.height="40px";n.style.marginRight="10px";n.style.paddingBottom="4px";n.src=a.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg": var n=document.createElement("img");n.setAttribute("border","0");n.setAttribute("align","absmiddle");n.style.width="40px";n.style.height="40px";n.style.marginRight="10px";n.style.paddingBottom="4px";n.src=a.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":a.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":a.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":a.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";!c&&f&&m.appendChild(n);f&&mxUtils.write(m,
a.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":a.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":a.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";!c&&f&&m.appendChild(n);f&&mxUtils.write(m,(null==a.mode||a.mode==App.MODE_GOOGLE||a.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");n=".xml";a.mode==App.MODE_GOOGLE&&null!=a.drive?n=a.drive.extension:a.mode==App.MODE_DROPBOX&&null!=a.dropbox?n=a.dropbox.extension: (null==a.mode||a.mode==App.MODE_GOOGLE||a.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");n=".xml";a.mode==App.MODE_GOOGLE&&null!=a.drive?n=a.drive.extension:a.mode==App.MODE_DROPBOX&&null!=a.dropbox?n=a.dropbox.extension:a.mode==App.MODE_ONEDRIVE&&null!=a.oneDrive&&(n=a.oneDrive.extension);var p=document.createElement("input");p.setAttribute("value",a.defaultFilename+n);p.style.marginRight="20px";p.style.marginLeft="10px";p.style.width=c?"220px":"450px";this.init=
a.mode==App.MODE_ONEDRIVE&&null!=a.oneDrive&&(n=a.oneDrive.extension);var p=document.createElement("input");p.setAttribute("value",a.defaultFilename+n);p.style.marginRight="20px";p.style.marginLeft="10px";p.style.width=c?"220px":"450px";this.init=function(){f&&(p.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?p.select():document.execCommand("selectAll",!1,null))};f&&m.appendChild(p);var s=null,t=null,q=null,u=mxUtils.button(mxResources.get("create"),function(){b()});u.className= function(){f&&(p.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?p.select():document.execCommand("selectAll",!1,null))};f&&m.appendChild(p);var s=null,t=null,q=null,u=mxUtils.button(mxResources.get("create"),function(){b()});u.className="geBtn gePrimaryBtn";var v=document.createElement("div");v.style.border="1px solid #d3d3d3";v.style.position="absolute";v.style.left="160px";v.style.right="34px";v.style.top=f?"72px":"40px";v.style.bottom="76px";v.style.margin="6px 0 0 -1px";v.style.padding=
"geBtn gePrimaryBtn";var v=document.createElement("div");v.style.border="1px solid #d3d3d3";v.style.position="absolute";v.style.left="160px";v.style.right="34px";v.style.top=f?"72px":"40px";v.style.bottom="76px";v.style.margin="6px 0 0 -1px";v.style.padding="6px";v.style.overflow="auto";var x=document.createElement("div");x.style.cssText="position:absolute;left:30px;width:128px;top:72px;bottom:76px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";f||(x.style.top="40px");var z=140,A=140,y={}, "6px";v.style.overflow="auto";var x=document.createElement("div");x.style.cssText="position:absolute;left:30px;width:128px;top:72px;bottom:76px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";f||(x.style.top="40px");var z=140,A=140,y={},D=1;y.basic=[{title:"blankDiagram",select:!0}];var B=y.basic;if(!c){l.appendChild(x);l.appendChild(v);var C=!1;mxUtils.get(TEMPLATE_PATH+"/index.xml",function(a){if(!C){C=!0;for(a=a.getXml().documentElement.firstChild;null!=a;){if("undefined"!==typeof a.getAttribute){var b=
D=1;y.basic=[{title:"blankDiagram",select:!0}];var B=y.basic;if(!c){l.appendChild(x);l.appendChild(v);var C=!1;mxUtils.get(TEMPLATE_PATH+"/index.xml",function(a){if(!C){C=!0;for(a=a.getXml().documentElement.firstChild;null!=a;){if("undefined"!==typeof a.getAttribute){var b=a.getAttribute("url");if(null!=b){var c=b.indexOf("/"),b=b.substring(0,c),c=y[b];null==c&&(D++,c=[],y[b]=c);c.push({url:a.getAttribute("url"),libs:a.getAttribute("libs"),title:a.getAttribute("title"),tooltip:a.getAttribute("url")})}}a= a.getAttribute("url");if(null!=b){var c=b.indexOf("/"),b=b.substring(0,c),c=y[b];null==c&&(D++,c=[],y[b]=c);c.push({url:a.getAttribute("url"),libs:a.getAttribute("libs"),title:a.getAttribute("title"),tooltip:a.getAttribute("url")})}}a=a.nextSibling}k()}})}mxEvent.addListener(p,"keypress",function(a){13==a.keyCode&&b()});m=document.createElement("div");m.style.marginTop=c?"4px":"16px";m.style.textAlign="right";m.style.position="absolute";m.style.left="40px";m.style.bottom="30px";m.style.right="40px";
a.nextSibling}k()}})}mxEvent.addListener(p,"keypress",function(a){13==a.keyCode&&b()});m=document.createElement("div");m.style.marginTop=c?"4px":"16px";m.style.textAlign="right";m.style.position="absolute";m.style.left="40px";m.style.bottom="30px";m.style.right="40px";n=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});n.className="geBtn";a.editor.cancelFirst&&m.appendChild(n);if(!c&&!a.isOffline()&&f&&null==d){var E=mxUtils.button(mxResources.get("help"),function(){window.open("https://support.draw.io/display/DO/Creating+and+Opening+Files")}); n=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});n.className="geBtn";a.editor.cancelFirst&&m.appendChild(n);if(!c&&!a.isOffline()&&f&&null==d){var E=mxUtils.button(mxResources.get("help"),function(){window.open("https://support.draw.io/display/DO/Creating+and+Opening+Files")});E.className="geBtn";m.appendChild(E)}!c&&"1"!=urlParams.embed&&(c=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var b=new FilenameDialog(a,"",mxResources.get("create"),function(b){null!=
E.className="geBtn";m.appendChild(E)}!c&&"1"!=urlParams.embed&&(c=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var b=new FilenameDialog(a,"",mxResources.get("create"),function(b){null!=b&&0<b.length&&(b=a.getUrl(window.location.pathname+"?mode\x3d"+a.mode+"\x26title\x3d"+encodeURIComponent(p.value)+"\x26create\x3d"+encodeURIComponent(b)),null==a.getCurrentFile()?window.location.href=b:window.openWindow(b))},mxResources.get("url"));a.showDialog(b.container,300,80,!0,!0);b.init()}), b&&0<b.length&&(b=a.getUrl(window.location.pathname+"?mode\x3d"+a.mode+"\x26title\x3d"+encodeURIComponent(p.value)+"\x26create\x3d"+encodeURIComponent(b)),null==a.getCurrentFile()?window.location.href=b:window.openWindow(b))},mxResources.get("url"));a.showDialog(b.container,300,80,!0,!0);b.init()}),c.className="geBtn",m.appendChild(c));m.appendChild(u);!a.editor.cancelFirst&&null==d&&m.appendChild(n);l.appendChild(m);this.container=l},CreateDialog=function(a,c,f,d,b,e,g,k,l,m,n){function p(b,c,d,
c.className="geBtn",m.appendChild(c));m.appendChild(u);!a.editor.cancelFirst&&null==d&&m.appendChild(n);l.appendChild(m);this.container=l},CreateDialog=function(a,c,f,d,b,e,g,k,l,m,n){function p(b,c,d,e){function f(){mxEvent.addListener(k,"click",function(){s(d);t(d)})}var k=document.createElement("a");k.style.overflow="hidden";var g=document.createElement("img");g.src=b;g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width="60px";g.style.height="60px";g.style.paddingBottom= e){function f(){mxEvent.addListener(k,"click",function(){s(d);t(d)})}var k=document.createElement("a");k.style.overflow="hidden";var g=document.createElement("img");g.src=b;g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width="60px";g.style.height="60px";g.style.paddingBottom="6px";k.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";k.className="geBaseButton";k.style.position="relative";k.style.margin="4px";k.style.padding="8px 8px 10px 8px";k.style.whiteSpace="nowrap";
"6px";k.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";k.className="geBaseButton";k.style.position="relative";k.style.margin="4px";k.style.padding="8px 8px 10px 8px";k.style.whiteSpace="nowrap";k.appendChild(g);mxClient.IS_QUIRKS&&(k.style.cssFloat="left",k.style.zoom="1");k.style.color="gray";k.style.fontSize="11px";var l=document.createElement("div");k.appendChild(l);mxUtils.write(l,c);if(null!=e&&null==a[e]){g.style.visibility="hidden";mxUtils.setOpacity(l,10);var m=new Spinner({lines:12, k.appendChild(g);mxClient.IS_QUIRKS&&(k.style.cssFloat="left",k.style.zoom="1");k.style.color="gray";k.style.fontSize="11px";var l=document.createElement("div");k.appendChild(l);mxUtils.write(l,c);if(null!=e&&null==a[e]){g.style.visibility="hidden";mxUtils.setOpacity(l,10);var m=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});m.spin(k);var n=window.setTimeout(function(){null==a[e]&&(m.stop(),k.style.display="none")},
length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});m.spin(k);var n=window.setTimeout(function(){null==a[e]&&(m.stop(),k.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[e]&&(window.clearTimeout(n),mxUtils.setOpacity(l,100),g.style.visibility="",m.stop(),f())}))}else f();z.appendChild(k)}function s(b){if(g){var d=x.value,e=d.lastIndexOf(".");if(0>c.lastIndexOf(".")&&(!u||0>e)){b=null!=b?b:A.value; 3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[e]&&(window.clearTimeout(n),mxUtils.setOpacity(l,100),g.style.visibility="",m.stop(),f())}))}else f();z.appendChild(k)}function s(b){if(g){var d=x.value,e=d.lastIndexOf(".");if(0>c.lastIndexOf(".")&&(!u||0>e)){b=null!=b?b:A.value;var f="";b==App.MODE_GOOGLE?f=a.drive.extension:b==App.MODE_DROPBOX?f=a.dropbox.extension:b==App.MODE_ONEDRIVE?f=a.oneDrive.extension:b==App.MODE_DEVICE&&(f=".xml");0<=e&&(d=d.substring(0,e));x.value=
var f="";b==App.MODE_GOOGLE?f=a.drive.extension:b==App.MODE_DROPBOX?f=a.dropbox.extension:b==App.MODE_ONEDRIVE?f=a.oneDrive.extension:b==App.MODE_DEVICE&&(f=".xml");0<=e&&(d=d.substring(0,e));x.value=d+f}}}function t(b){var c=x.value;if(null==b||null!=c&&0<c.length)a.hideDialog(),f(c,b)}g=null!=g?g:!0;k=null!=k?k:!0;var q=document.createElement("div"),u=!0;null==d&&a.addLanguageMenu(q);var v=document.createElement("h2");mxUtils.write(v,b||mxResources.get("create"));v.style.marginTop="0px";v.style.marginBottom= d+f}}}function t(b){var c=x.value;if(null==b||null!=c&&0<c.length)a.hideDialog(),f(c,b)}g=null!=g?g:!0;k=null!=k?k:!0;var q=document.createElement("div"),u=!0;null==d&&a.addLanguageMenu(q);var v=document.createElement("h2");mxUtils.write(v,b||mxResources.get("create"));v.style.marginTop="0px";v.style.marginBottom="24px";q.appendChild(v);mxUtils.write(q,mxResources.get("filename")+":");var x=document.createElement("input");x.setAttribute("value",c);x.style.width="280px";x.style.marginLeft="10px";x.style.marginBottom=
"24px";q.appendChild(v);mxUtils.write(q,mxResources.get("filename")+":");var x=document.createElement("input");x.setAttribute("value",c);x.style.width="280px";x.style.marginLeft="10px";x.style.marginBottom="20px";this.init=function(){x.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?x.select():document.execCommand("selectAll",!1,null)};q.appendChild(x);mxUtils.br(q);var z=document.createElement("div");z.style.textAlign="center";u?(z.style.marginTop="6px",q.appendChild(z)):mxUtils.write(q, "20px";this.init=function(){x.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?x.select():document.execCommand("selectAll",!1,null)};q.appendChild(x);mxUtils.br(q);var z=document.createElement("div");z.style.textAlign="center";u?(z.style.marginTop="6px",q.appendChild(z)):mxUtils.write(q,mxResources.get("chooseAnOption")+":");var A=document.createElement("select");A.style.marginLeft="10px";!a.isOfflineApp()&&!a.isOffline()&&("function"===typeof window.DriveClient&&(b=document.createElement("option"),
mxResources.get("chooseAnOption")+":");var A=document.createElement("select");A.style.marginLeft="10px";!a.isOfflineApp()&&!a.isOffline()&&("function"===typeof window.DriveClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(b,mxResources.get("googleDrive")),A.appendChild(b),p(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.DropboxClient&&(b=document.createElement("option"),b.setAttribute("value", b.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(b,mxResources.get("googleDrive")),A.appendChild(b),p(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.DropboxClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_DROPBOX),mxUtils.write(b,mxResources.get("dropbox")),A.appendChild(b),a.mode==App.MODE_DROPBOX&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),
App.MODE_DROPBOX),mxUtils.write(b,mxResources.get("dropbox")),A.appendChild(b),a.mode==App.MODE_DROPBOX&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),"function"===typeof window.OneDriveClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(b,mxResources.get("oneDrive")),A.appendChild(b),a.mode==App.MODE_ONEDRIVE&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/onedrive-logo.svg", App.MODE_DROPBOX,"dropbox")),"function"===typeof window.OneDriveClient&&(b=document.createElement("option"),b.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(b,mxResources.get("oneDrive")),A.appendChild(b),a.mode==App.MODE_ONEDRIVE&&b.setAttribute("selected","selected"),p(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=a.getCurrentFile()&&!mxClient.IS_IOS)b=document.createElement("option"),
mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=a.getCurrentFile()&&!mxClient.IS_IOS)b=document.createElement("option"),b.setAttribute("value",App.MODE_DEVICE),mxUtils.write(b,mxResources.get("device")),A.appendChild(b),(a.mode==App.MODE_DEVICE||!k)&&b.setAttribute("selected","selected"),n&&(mxUtils.br(z),p(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE));k&&isLocalStorage&&"0"!=urlParams.browser&& b.setAttribute("value",App.MODE_DEVICE),mxUtils.write(b,mxResources.get("device")),A.appendChild(b),(a.mode==App.MODE_DEVICE||!k)&&b.setAttribute("selected","selected"),n&&(mxUtils.br(z),p(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE));k&&isLocalStorage&&"0"!=urlParams.browser&&(k=document.createElement("option"),k.setAttribute("value",App.MODE_BROWSER),mxUtils.write(k,mxResources.get("browser")),A.appendChild(k),a.mode==App.MODE_BROWSER&&k.setAttribute("selected",
(k=document.createElement("option"),k.setAttribute("value",App.MODE_BROWSER),mxUtils.write(k,mxResources.get("browser")),A.appendChild(k),a.mode==App.MODE_BROWSER&&k.setAttribute("selected","selected"),p(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));k=document.createElement("div");k.style.marginTop=u?"26px":"38px";k.style.textAlign=u?"center":"right";u||(q.appendChild(A),mxEvent.addListener(A,"change",s),s());null!=m&&(b=mxUtils.button(mxResources.get("help"),function(){window.open(m)}), "selected"),p(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));k=document.createElement("div");k.style.marginTop=u?"26px":"38px";k.style.textAlign=u?"center":"right";u||(q.appendChild(A),mxEvent.addListener(A,"change",s),s());null!=m&&(b=mxUtils.button(mxResources.get("help"),function(){window.open(m)}),b.className="geBtn",k.appendChild(b));b=mxUtils.button(mxResources.get("cancel"),function(){null!=d?d():(a.fileLoaded(null),a.hideDialog(),window.close(),window.location.href=
b.className="geBtn",k.appendChild(b));b=mxUtils.button(mxResources.get("cancel"),function(){null!=d?d():(a.fileLoaded(null),a.hideDialog(),window.close(),window.location.href=a.getUrl())});b.className="geBtn";a.editor.cancelFirst&&k.appendChild(b);null==d&&(v=mxUtils.button(mxResources.get("decideLater"),function(){t(null)}),v.className="geBtn",k.appendChild(v));l&&(l=mxUtils.button(mxResources.get("openInNewWindow"),function(){t("_blank")}),l.className="geBtn",k.appendChild(l));if(!mxClient.IS_IOS|| a.getUrl())});b.className="geBtn";a.editor.cancelFirst&&k.appendChild(b);null==d&&(v=mxUtils.button(mxResources.get("decideLater"),function(){t(null)}),v.className="geBtn",k.appendChild(v));l&&(l=mxUtils.button(mxResources.get("openInNewWindow"),function(){t("_blank")}),l.className="geBtn",k.appendChild(l));if(!mxClient.IS_IOS||!u)e=mxUtils.button(e||mxResources.get("create"),function(){t(n?"download":u?App.MODE_DEVICE:A.value)}),e.className="geBtn gePrimaryBtn",k.appendChild(e);a.editor.cancelFirst||
!u)e=mxUtils.button(e||mxResources.get("create"),function(){t(n?"download":u?App.MODE_DEVICE:A.value)}),e.className="geBtn gePrimaryBtn",k.appendChild(e);a.editor.cancelFirst||k.appendChild(b);mxEvent.addListener(x,"keypress",function(b){13==b.keyCode?t(u?App.MODE_DEVICE:A.value):27==b.keyCode&&(a.fileLoaded(null),a.hideDialog(),window.close())});q.appendChild(k);this.container=q},PopupDialog=function(a,c,f,d,b){b=null!=b?b:!0;var e=document.createElement("div");e.style.textAlign="left";mxUtils.write(e, k.appendChild(b);mxEvent.addListener(x,"keypress",function(b){13==b.keyCode?t(u?App.MODE_DEVICE:A.value):27==b.keyCode&&(a.fileLoaded(null),a.hideDialog(),window.close())});q.appendChild(k);this.container=q},PopupDialog=function(a,c,f,d,b){b=null!=b?b:!0;var e=document.createElement("div");e.style.textAlign="left";mxUtils.write(e,mxResources.get("fileOpenLocation"));mxUtils.br(e);mxUtils.br(e);var g=mxUtils.button(mxResources.get("openInThisWindow"),function(){b&&a.hideDialog();null!=d&&d()});g.className=
mxResources.get("fileOpenLocation"));mxUtils.br(e);mxUtils.br(e);var g=mxUtils.button(mxResources.get("openInThisWindow"),function(){b&&a.hideDialog();null!=d&&d()});g.className="geBtn";g.style.marginBottom="8px";g.style.width="280px";e.appendChild(g);mxUtils.br(e);var k=mxUtils.button(mxResources.get("openInNewWindow"),function(){b&&a.hideDialog();null!=f&&f();window.open(c)});k.className="geBtn gePrimaryBtn";k.style.width=g.style.width;e.appendChild(k);mxUtils.br(e);mxUtils.br(e);mxUtils.write(e, "geBtn";g.style.marginBottom="8px";g.style.width="280px";e.appendChild(g);mxUtils.br(e);var k=mxUtils.button(mxResources.get("openInNewWindow"),function(){b&&a.hideDialog();null!=f&&f();window.open(c)});k.className="geBtn gePrimaryBtn";k.style.width=g.style.width;e.appendChild(k);mxUtils.br(e);mxUtils.br(e);mxUtils.write(e,mxResources.get("allowPopups"));this.container=e},ImageDialog=function(a,c,f,d,b,e){e=null!=e?e:!0;var g=a.editor.graph,k=document.createElement("div");mxUtils.write(k,c);c=document.createElement("div");
mxResources.get("allowPopups"));this.container=e},ImageDialog=function(a,c,f,d,b,e){e=null!=e?e:!0;var g=a.editor.graph,k=document.createElement("div");mxUtils.write(k,c);c=document.createElement("div");c.className="geTitle";c.style.backgroundColor="transparent";c.style.borderColor="transparent";c.style.whiteSpace="nowrap";c.style.textOverflow="clip";c.style.cursor="default";mxClient.IS_VML||(c.style.paddingRight="20px");var l=document.createElement("input");l.setAttribute("value",f);l.setAttribute("type", c.className="geTitle";c.style.backgroundColor="transparent";c.style.borderColor="transparent";c.style.whiteSpace="nowrap";c.style.textOverflow="clip";c.style.cursor="default";mxClient.IS_VML||(c.style.paddingRight="20px");var l=document.createElement("input");l.setAttribute("value",f);l.setAttribute("type","text");l.style.marginTop="6px";l.style.width=(Graph.fileSupport?420:340)+(mxClient.IS_QUIRKS?20:-20)+"px";l.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";l.style.backgroundRepeat=
"text");l.style.marginTop="6px";l.style.width=(Graph.fileSupport?420:340)+(mxClient.IS_QUIRKS?20:-20)+"px";l.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";l.style.backgroundRepeat="no-repeat";l.style.backgroundPosition="100% 50%";l.style.paddingRight="14px";f=document.createElement("div");f.setAttribute("title",mxResources.get("reset"));f.style.position="relative";f.style.left="-16px";f.style.width="12px";f.style.height="14px";f.style.cursor="pointer";f.style.display=mxClient.IS_VML? "no-repeat";l.style.backgroundPosition="100% 50%";l.style.paddingRight="14px";f=document.createElement("div");f.setAttribute("title",mxResources.get("reset"));f.style.position="relative";f.style.left="-16px";f.style.width="12px";f.style.height="14px";f.style.cursor="pointer";f.style.display=mxClient.IS_VML?"inline":"inline-block";f.style.top=(mxClient.IS_VML?0:3)+"px";f.style.background="url('"+a.editor.transparentImage+"')";mxEvent.addListener(f,"click",function(){l.value="";l.focus()});c.appendChild(l);
"inline":"inline-block";f.style.top=(mxClient.IS_VML?0:3)+"px";f.style.background="url('"+a.editor.transparentImage+"')";mxEvent.addListener(f,"click",function(){l.value="";l.focus()});c.appendChild(l);c.appendChild(f);k.appendChild(c);var m=function(b,c,f){var k="data:"==b.substring(0,5);(!a.isOffline()||k&&"undefined"===typeof chrome)&&a.spinner.spin(document.body,mxResources.get("inserting"))?a.loadImage(b,function(k){a.spinner.stop();a.hideDialog();var g=null!=c&&null!=f?Math.max(c/k.width,f/ c.appendChild(f);k.appendChild(c);var m=function(b,c,f){var k="data:"==b.substring(0,5);(!a.isOffline()||k&&"undefined"===typeof chrome)&&a.spinner.spin(document.body,mxResources.get("inserting"))?a.loadImage(b,function(k){a.spinner.stop();a.hideDialog();var g=null!=c&&null!=f?Math.max(c/k.width,f/k.height):Math.min(1,Math.min(520/k.width,520/k.height));e&&(b=a.convertDataUri(b));d(b,Math.round(Number(k.width)*g),Math.round(Number(k.height)*g))},function(){a.spinner.stop();d(null);a.showError(mxResources.get("error"),
k.height):Math.min(1,Math.min(520/k.width,520/k.height));e&&(b=a.convertDataUri(b));d(b,Math.round(Number(k.width)*g),Math.round(Number(k.height)*g))},function(){a.spinner.stop();d(null);a.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b=a.convertDataUri(b),c=null==c?120:c,f=null==f?100:f,a.hideDialog(),d(b,c,f))},n=function(c){if(null!=c&&0<c.length){var e=b?null:g.getModel().getGeometry(g.getSelectionCell());null!=e?m(c,e.width,e.height):m(c)}else a.hideDialog(), mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b=a.convertDataUri(b),c=null==c?120:c,f=null==f?100:f,a.hideDialog(),d(b,c,f))},n=function(c){if(null!=c&&0<c.length){var e=b?null:g.getModel().getGeometry(g.getSelectionCell());null!=e?m(c,e.width,e.height):m(c)}else a.hideDialog(),d(null)};this.init=function(){l.focus();if(Graph.fileSupport){l.setAttribute("placeholder",mxResources.get("dragImagesHere"));var b=k.parentNode,c=null;mxEvent.addListener(b,"dragleave",function(a){null!=c&&(c.parentNode.removeChild(c),
d(null)};this.init=function(){l.focus();if(Graph.fileSupport){l.setAttribute("placeholder",mxResources.get("dragImagesHere"));var b=k.parentNode,c=null;mxEvent.addListener(b,"dragleave",function(a){null!=c&&(c.parentNode.removeChild(c),c=null);a.stopPropagation();a.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(d){if(null==c&&(!mxClient.IS_IE||10<document.documentMode))c=a.highlightElement(b);d.stopPropagation();d.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this, c=null);a.stopPropagation();a.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(d){if(null==c&&(!mxClient.IS_IE||10<document.documentMode))c=a.highlightElement(b);d.stopPropagation();d.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this,function(b){null!=c&&(c.parentNode.removeChild(c),c=null);if(0<b.dataTransfer.files.length)a.importFiles(b.dataTransfer.files,0,0,a.maxImageSize,function(a,b,c,d,e,f){n(a)},function(){},function(a){return"image/"==a.type.substring(0,
function(b){null!=c&&(c.parentNode.removeChild(c),c=null);if(0<b.dataTransfer.files.length)a.importFiles(b.dataTransfer.files,0,0,a.maxImageSize,function(a,b,c,d,e,f){n(a)},function(){},function(a){return"image/"==a.type.substring(0,6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!mxEvent.isControlDown(b));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")){var d=b.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(d)&&n(decodeURIComponent(d))}b.stopPropagation(); 6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!mxEvent.isControlDown(b));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")){var d=b.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(d)&&n(decodeURIComponent(d))}b.stopPropagation();b.preventDefault()}),!1)}};f=document.createElement("div");f.style.marginTop=mxClient.IS_QUIRKS?"22px":"14px";f.style.textAlign="right";c=mxUtils.button(mxResources.get("cancel"),function(){a.spinner.stop();a.hideDialog()});
b.preventDefault()}),!1)}};f=document.createElement("div");f.style.marginTop=mxClient.IS_QUIRKS?"22px":"14px";f.style.textAlign="right";c=mxUtils.button(mxResources.get("cancel"),function(){a.spinner.stop();a.hideDialog()});c.className="geBtn";a.editor.cancelFirst&&f.appendChild(c);ImageDialog.filePicked=function(a){a.action==google.picker.Action.PICKED&&null!=a.docs[0].thumbnails&&(a=a.docs[0].thumbnails[a.docs[0].thumbnails.length-1],null!=a&&(l.value=a.url));l.focus()};if(Graph.fileSupport){var p= c.className="geBtn";a.editor.cancelFirst&&f.appendChild(c);ImageDialog.filePicked=function(a){a.action==google.picker.Action.PICKED&&null!=a.docs[0].thumbnails&&(a=a.docs[0].thumbnails[a.docs[0].thumbnails.length-1],null!=a&&(l.value=a.url));l.focus()};if(Graph.fileSupport){var p=document.createElement("input");p.setAttribute("multiple","multiple");p.setAttribute("type","file");if(null==document.documentMode){mxEvent.addListener(p,"change",function(b){a.importFiles(p.files,0,0,a.maxImageSize,function(a,
document.createElement("input");p.setAttribute("multiple","multiple");p.setAttribute("type","file");if(null==document.documentMode){mxEvent.addListener(p,"change",function(b){a.importFiles(p.files,0,0,a.maxImageSize,function(a,b,c,d,e,f){n(a)},function(){},function(a){return"image/"==a.type.substring(0,6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!0)});var s=mxUtils.button(mxResources.get("open"),function(){p.click()});s.className="geBtn";f.appendChild(s)}}"undefined"!=typeof google&&"undefined"!= b,c,d,e,f){n(a)},function(){},function(a){return"image/"==a.type.substring(0,6)},function(a){for(var b=0;b<a.length;b++)a[b]()},!0)});var s=mxUtils.button(mxResources.get("open"),function(){p.click()});s.className="geBtn";f.appendChild(s)}}"undefined"!=typeof google&&"undefined"!=typeof google.picker&&window.self===window.top&&(s=mxUtils.button(mxResources.get("search"),function(){if(null==a.imageSearchPicker){var b=(new google.picker.PickerBuilder).setLocale(mxLanguage).addView(google.picker.ViewId.IMAGE_SEARCH).enableFeature(google.picker.Feature.NAV_HIDDEN);
typeof google.picker&&window.self===window.top&&(s=mxUtils.button(mxResources.get("search"),function(){if(null==a.imageSearchPicker){var b=(new google.picker.PickerBuilder).setLocale(mxLanguage).addView(google.picker.ViewId.IMAGE_SEARCH).enableFeature(google.picker.Feature.NAV_HIDDEN);a.imageSearchPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.imageSearchPicker.setVisible(!0);a.movePickersToTop()}),s.className="geBtn",f.appendChild(s),null!=a.drive&&"1"==urlParams.photos&& a.imageSearchPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.imageSearchPicker.setVisible(!0);a.movePickersToTop()}),s.className="geBtn",f.appendChild(s),null!=a.drive&&"1"==urlParams.photos&&(s=mxUtils.button(mxResources.get("googlePlus"),function(){a.spinner.spin(document.body,mxResources.get("authorizing"))&&a.drive.checkToken(mxUtils.bind(this,function(){a.spinner.stop();if(null==a.photoPicker){var b=gapi.auth.getToken().access_token,b=(new google.picker.PickerBuilder).setAppId(a.drive.appId).setLocale(mxLanguage).setOAuthToken(b).addView(google.picker.ViewId.PHOTOS).addView(google.picker.ViewId.PHOTO_ALBUMS).addView(google.picker.ViewId.PHOTO_UPLOAD);
(s=mxUtils.button(mxResources.get("googlePlus"),function(){a.spinner.spin(document.body,mxResources.get("authorizing"))&&a.drive.checkToken(mxUtils.bind(this,function(){a.spinner.stop();if(null==a.photoPicker){var b=gapi.auth.getToken().access_token,b=(new google.picker.PickerBuilder).setAppId(a.drive.appId).setLocale(mxLanguage).setOAuthToken(b).addView(google.picker.ViewId.PHOTOS).addView(google.picker.ViewId.PHOTO_ALBUMS).addView(google.picker.ViewId.PHOTO_UPLOAD);a.photoPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.photoPicker.setVisible(!0); a.photoPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.photoPicker.setVisible(!0);a.movePickersToTop()}))}),s.className="geBtn",f.appendChild(s)));mxEvent.addListener(l,"keypress",function(a){13==a.keyCode&&n(l.value)});s=mxUtils.button(mxResources.get("apply"),function(){n(l.value)});s.className="geBtn gePrimaryBtn";f.appendChild(s);a.editor.cancelFirst||f.appendChild(c);Graph.fileSupport&&(f.style.marginTop="120px",k.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",
a.movePickersToTop()}))}),s.className="geBtn",f.appendChild(s)));mxEvent.addListener(l,"keypress",function(a){13==a.keyCode&&n(l.value)});s=mxUtils.button(mxResources.get("apply"),function(){n(l.value)});s.className="geBtn gePrimaryBtn";f.appendChild(s);a.editor.cancelFirst||f.appendChild(c);Graph.fileSupport&&(f.style.marginTop="120px",k.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",k.style.backgroundPosition="center 65%",k.style.backgroundRepeat="no-repeat",c=document.createElement("div"), k.style.backgroundPosition="center 65%",k.style.backgroundRepeat="no-repeat",c=document.createElement("div"),c.style.position="absolute",c.style.width="420px",c.style.top="58%",c.style.textAlign="center",c.style.fontSize="18px",c.style.color="#a0c3ff",mxUtils.write(c,mxResources.get("dragImagesHere")),k.appendChild(c));k.appendChild(f);this.container=k};
c.style.position="absolute",c.style.width="420px",c.style.top="58%",c.style.textAlign="center",c.style.fontSize="18px",c.style.color="#a0c3ff",mxUtils.write(c,mxResources.get("dragImagesHere")),k.appendChild(c));k.appendChild(f);this.container=k};
PrintDialog.prototype.create=function(a){function c(){s.value=Math.max(1,Math.min(g,Math.max(parseInt(s.value),parseInt(p.value))));p.value=Math.max(1,Math.min(g,Math.min(parseInt(s.value),parseInt(p.value))))}function f(b){function c(a,b,d){var f=a.getGraphBounds(),k=0,g=0,l=K.get(),m=1/a.pageScale,n=v.checked;if(n)var m=parseInt(H.value),p=parseInt(I.value),m=Math.min(l.height*p/(f.height/a.view.scale),l.width*m/(f.width/a.view.scale));else m=parseInt(u.value)/(100*a.pageScale),isNaN(m)&&(e=1/a.pageScale, PrintDialog.prototype.create=function(a){function c(){s.value=Math.max(1,Math.min(g,Math.max(parseInt(s.value),parseInt(p.value))));p.value=Math.max(1,Math.min(g,Math.min(parseInt(s.value),parseInt(p.value))))}function f(b){function c(a,b,d){var f=a.getGraphBounds(),k=0,g=0,l=K.get(),m=1/a.pageScale,n=v.checked;if(n)var m=parseInt(H.value),p=parseInt(I.value),m=Math.min(l.height*p/(f.height/a.view.scale),l.width*m/(f.width/a.view.scale));else m=parseInt(u.value)/(100*a.pageScale),isNaN(m)&&(e=1/a.pageScale,
u.value="100 %");l=mxRectangle.fromRectangle(l);l.width=Math.ceil(l.width*e);l.height=Math.ceil(l.height*e);m*=e;!n&&a.pageVisible?(f=a.getPageLayout(),k-=f.x*l.width,g-=f.y*l.height):n=!0;if(null==b){b=PrintDialog.createPrintPreview(a,m,l,0,k,g,n);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var q=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=q.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,null, u.value="100 %");l=mxRectangle.fromRectangle(l);l.width=Math.ceil(l.width*e);l.height=Math.ceil(l.height*e);m*=e;!n&&a.pageVisible?(f=a.getPageLayout(),k-=f.x*l.width,g-=f.y*l.height):n=!0;if(null==b){b=PrintDialog.createPrintPreview(a,m,l,0,k,g,n);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var q=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=q.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,null,
d,!0)}else{l=a.background;if(null==l||""==l||l==mxConstants.NONE)l="#ffffff";b.backgroundColor=l;b.autoOrigin=n;b.appendGraph(a,m,k,g,d,!0)}return b}var e=parseInt(M.value)/100;isNaN(e)&&(e=1,M.value="100 %");var e=0.75*e,f=p.value,g=s.value,l=!m.checked,n=null;l&&(l=f==k&&g==k);if(!l&&null!=a.pages&&a.pages.length){var q=0,l=a.pages.length-1;m.checked||(q=parseInt(f)-1,l=parseInt(g)-1);for(var t=q;t<=l;t++){var x=a.pages[t],f=x==a.currentPage?d:null;if(null==f){var f=a.createTemporaryGraph(d.getStylesheet()), d,!0)}else{l=a.background;if(null==l||""==l||l==mxConstants.NONE)l="#ffffff";b.backgroundColor=l;b.autoOrigin=n;b.appendGraph(a,m,k,g,d,!0)}return b}var e=parseInt(M.value)/100;isNaN(e)&&(e=1,M.value="100 %");var e=0.75*e,f=p.value,g=s.value,l=!m.checked,n=null;l&&(l=f==k&&g==k);if(!l&&null!=a.pages&&a.pages.length){var q=0,l=a.pages.length-1;m.checked||(q=parseInt(f)-1,l=parseInt(g)-1);for(var t=q;t<=l;t++){var x=a.pages[t],f=x==a.currentPage?d:null;if(null==f){var f=a.createTemporaryGraph(d.getStylesheet()),
@ -7572,7 +7571,7 @@ c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!=
[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.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+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.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.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves= [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.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"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var t=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,m){if(null!=c&&null==mxMarker.markers[c]){var n=this.getPackageForType(c);null!=n&&mxStencilRegistry.getStencil(n)}return t.apply(this,arguments)}})(); [SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var t=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,m){if(null!=c&&null==mxMarker.markers[c]){var n=this.getPackageForType(c);null!=n&&mxStencilRegistry.getStencil(n)}return t.apply(this,arguments)}})();
(function(){EditorUi.VERSION="6.0.2.15";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRv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2.16";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDdCMTdENjVCOEM4MTFFNDlCRjVBNDdCODU5NjNBNUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDdCMTdENjZCOEM4MTFFNDlCRjVBNDdCODU5NjNBNUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG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AAAAAAAAAAAAAAAGQ8CXcEgsvlytVUplJLJIpSEDUESFTELBwSgCCQEV42kjDFiMo4uQsDB2MkLHoEHUTD7DRAHC8VAiZ0QSCgYIDxhNiUEAOw\x3d\x3d";
EditorUi.prototype.emptyDiagramXml='\x3cmxGraphModel\x3e\x3croot\x3e\x3cmxCell id\x3d"0"/\x3e\x3cmxCell id\x3d"1" parent\x3d"0"/\x3e\x3c/root\x3e\x3c/mxGraphModel\x3e';EditorUi.prototype.emptyLibraryXml="\x3cmxlibrary\x3e[]\x3c/mxlibrary\x3e";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle="shape\x3dstencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE\x3d);whiteSpace\x3dwrap;html\x3d1;"; EditorUi.prototype.emptyDiagramXml='\x3cmxGraphModel\x3e\x3croot\x3e\x3cmxCell id\x3d"0"/\x3e\x3cmxCell id\x3d"1" parent\x3d"0"/\x3e\x3c/root\x3e\x3c/mxGraphModel\x3e';EditorUi.prototype.emptyLibraryXml="\x3cmxlibrary\x3e[]\x3c/mxlibrary\x3e";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle="shape\x3dstencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE\x3d);whiteSpace\x3dwrap;html\x3d1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;(function(){EditorUi.prototype.useCanvasForExport=!1;try{var a=document.createElement("canvas"),b=new Image;b.onload=function(){try{a.getContext("2d").drawImage(b,0,0);var c=a.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=c&&6<c.length}catch(d){}}; EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;(function(){EditorUi.prototype.useCanvasForExport=!1;try{var a=document.createElement("canvas"),b=new Image;b.onload=function(){try{a.getContext("2d").drawImage(b,0,0);var c=a.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=c&&6<c.length}catch(d){}};
@ -7695,8 +7694,8 @@ c,d,v));null!=q&&q(b)}}),g)):/(\.vsd)($|\?)/i.test(g)||(A=this.insertTextAt(this
6);b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g&63)}return b};EditorUi.prototype.importFiles=function(a,b,c,d,e,f,g,q,u,v,x,z){var A=null!=b&&null!=c;b=null!=b?b:0;c=null!=c?c:0;d=null!=d?d:this.maxImageSize;v=null!=v?v:this.maxImageBytes;u=null!=u?u:!0;var y=this.editor.graph,D=y.gridSize;e=null!=e?e:mxUtils.bind(this,function(a,b,c,d,e,f,g,k,l){return null!=a&&"\x3cmxlibrary"==a.substring(0,10)?(this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,a,g)),null): 6);b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g&63)}return b};EditorUi.prototype.importFiles=function(a,b,c,d,e,f,g,q,u,v,x,z){var A=null!=b&&null!=c;b=null!=b?b:0;c=null!=c?c:0;d=null!=d?d:this.maxImageSize;v=null!=v?v:this.maxImageBytes;u=null!=u?u:!0;var y=this.editor.graph,D=y.gridSize;e=null!=e?e:mxUtils.bind(this,function(a,b,c,d,e,f,g,k,l){return null!=a&&"\x3cmxlibrary"==a.substring(0,10)?(this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,a,g)),null):
this.importFile(a,b,c,d,e,f,g,k,l,A,z)});f=null!=f?f:mxUtils.bind(this,function(a){y.setSelectionCells(a)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var B=a.length,C=B,E=[],G=mxUtils.bind(this,function(a,b){E[a]=b;if(0==--C){this.spinner.stop();if(null!=q)q(E);else{var c=[];y.getModel().beginUpdate();try{for(var d=0;d<E.length;d++){var e=E[d]();null!=e&&(c=c.concat(e))}}finally{y.getModel().endUpdate()}}f(c)}}),H=0;H<B;H++)mxUtils.bind(this,function(f){var q=a[f],s=new FileReader; this.importFile(a,b,c,d,e,f,g,k,l,A,z)});f=null!=f?f:mxUtils.bind(this,function(a){y.setSelectionCells(a)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var B=a.length,C=B,E=[],G=mxUtils.bind(this,function(a,b){E[a]=b;if(0==--C){this.spinner.stop();if(null!=q)q(E);else{var c=[];y.getModel().beginUpdate();try{for(var d=0;d<E.length;d++){var e=E[d]();null!=e&&(c=c.concat(e))}}finally{y.getModel().endUpdate()}}f(c)}}),H=0;H<B;H++)mxUtils.bind(this,function(f){var q=a[f],s=new FileReader;
s.onload=mxUtils.bind(this,function(a){if(null==g||g(q))if("image/"==q.type.substring(0,6))if("image/svg"==q.type.substring(0,9)){var k=a.target.result,s=k.indexOf(","),y=atob(k.substring(s+1)),A=mxUtils.parseXml(y),y=A.getElementsByTagName("svg");if(0<y.length){var y=y[0],B=z?null:y.getAttribute("content");null!=B&&"\x3c"!=B.charAt(0)&&"%"!=B.charAt(0)&&(B=unescape(window.atob?atob(B):Base64.decode(B,!0)));null!=B&&"%"==B.charAt(0)&&(B=decodeURIComponent(B));null!=B&&("\x3cmxfile "===B.substring(0, s.onload=mxUtils.bind(this,function(a){if(null==g||g(q))if("image/"==q.type.substring(0,6))if("image/svg"==q.type.substring(0,9)){var k=a.target.result,s=k.indexOf(","),y=atob(k.substring(s+1)),A=mxUtils.parseXml(y),y=A.getElementsByTagName("svg");if(0<y.length){var y=y[0],B=z?null:y.getAttribute("content");null!=B&&"\x3c"!=B.charAt(0)&&"%"!=B.charAt(0)&&(B=unescape(window.atob?atob(B):Base64.decode(B,!0)));null!=B&&"%"==B.charAt(0)&&(B=decodeURIComponent(B));null!=B&&("\x3cmxfile "===B.substring(0,
8)||"\x3cmxGraphModel "===B.substring(0,14))?G(f,mxUtils.bind(this,function(){return e(B,"text/xml",b+f*D,c+f*D,0,0,q.name)})):G(f,mxUtils.bind(this,function(){try{if(k.substring(0,s+1),null!=A){var a=A.getElementsByTagName("svg");if(0<a.length){var g=a[0],t=parseFloat(g.getAttribute("width")),u=parseFloat(g.getAttribute("height")),v=g.getAttribute("viewBox");if(null==v||0==v.length)g.setAttribute("viewBox","0 0 "+t+" "+u);else if(isNaN(t)||isNaN(u)){var x=v.split(" ");3<x.length&&(t=parseFloat(x[2]), 8)||"\x3cmxGraphModel "===B.substring(0,14))?G(f,mxUtils.bind(this,function(){return e(B,"text/xml",b+f*D,c+f*D,0,0,q.name)})):G(f,mxUtils.bind(this,function(){try{if(k.substring(0,s+1),null!=A){var a=A.getElementsByTagName("svg");if(0<a.length){var g=a[0],u=parseFloat(g.getAttribute("width")),t=parseFloat(g.getAttribute("height")),v=g.getAttribute("viewBox");if(null==v||0==v.length)g.setAttribute("viewBox","0 0 "+u+" "+t);else if(isNaN(u)||isNaN(t)){var x=v.split(" ");3<x.length&&(u=parseFloat(x[2]),
u=parseFloat(x[3]))}k=this.createSvgDataUri(mxUtils.getXml(a[0]));var z=Math.min(1,Math.min(d/Math.max(1,t)),d/Math.max(1,u));return e(k,q.type,b+f*D,c+f*D,Math.max(1,Math.round(t*z)),Math.max(1,Math.round(u*z)),q.name)}}}catch(y){}return null}))}}else{y=!1;if("image/png"==q.type){var C=z?null:this.extractGraphModelFromPng(a.target.result);if(null!=C&&0<C.length){var E=new Image;E.src=a.target.result;G(f,mxUtils.bind(this,function(){return e(C,"text/xml",b+f*D,c+f*D,E.width,E.height,q.name)}));y= t=parseFloat(x[3]))}k=this.createSvgDataUri(mxUtils.getXml(a[0]));var z=Math.min(1,Math.min(d/Math.max(1,u)),d/Math.max(1,t));return e(k,q.type,b+f*D,c+f*D,Math.max(1,Math.round(u*z)),Math.max(1,Math.round(t*z)),q.name)}}}catch(y){}return null}))}}else{y=!1;if("image/png"==q.type){var C=z?null:this.extractGraphModelFromPng(a.target.result);if(null!=C&&0<C.length){var E=new Image;E.src=a.target.result;G(f,mxUtils.bind(this,function(){return e(C,"text/xml",b+f*D,c+f*D,E.width,E.height,q.name)}));y=
!0}}y||(null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime?(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(a.target.result,mxUtils.bind(this,function(g){this.resizeImage(g,a.target.result,mxUtils.bind(this,function(g,k,s){G(f,mxUtils.bind(this,function(){if(null!= !0}}y||(null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime?(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(a.target.result,mxUtils.bind(this,function(g){this.resizeImage(g,a.target.result,mxUtils.bind(this,function(g,k,s){G(f,mxUtils.bind(this,function(){if(null!=
g&&g.length<v){var t=!u||!this.isResampleImage(a.target.result)?1:Math.min(1,Math.min(d/k,d/s));return e(g,q.type,b+f*D,c+f*D,Math.round(k*t),Math.round(s*t),q.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),u,d,x)})))}else e(a.target.result,q.type,b+f*D,c+f*D,240,160,q.name,function(a){G(f,function(){return a})})});/(\.vsdx)($|\?)/i.test(q.name)?e(null,q.type,b+f*D,c+f*D,240,160,q.name,function(a){G(f,function(){return a})},q):"image"==q.type.substring(0,5)?s.readAsDataURL(q): g&&g.length<v){var t=!u||!this.isResampleImage(a.target.result)?1:Math.min(1,Math.min(d/k,d/s));return e(g,q.type,b+f*D,c+f*D,Math.round(k*t),Math.round(s*t),q.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),u,d,x)})))}else e(a.target.result,q.type,b+f*D,c+f*D,240,160,q.name,function(a){G(f,function(){return a})})});/(\.vsdx)($|\?)/i.test(q.name)?e(null,q.type,b+f*D,c+f*D,240,160,q.name,function(a){G(f,function(){return a})},q):"image"==q.type.substring(0,5)?s.readAsDataURL(q):
s.readAsText(q)})(H)};EditorUi.prototype.parseFile=function(a,b,c){c=null!=c?c:a.name;var d=new FormData;d.append("format","xml");d.append("upfile",a,c);var e=new XMLHttpRequest;e.open("POST",OPEN_URL);e.onreadystatechange=function(){b(e)};e.send(d)};EditorUi.prototype.isResampleImage=function(a,b){b=null!=b?b:this.resampleThreshold;return a.length>b};EditorUi.prototype.resizeImage=function(a,b,c,d,e,f){e=null!=e?e:this.maxImageSize;var g=Math.max(1,a.width),q=Math.max(1,a.height);if(d&&this.isResampleImage(b, s.readAsText(q)})(H)};EditorUi.prototype.parseFile=function(a,b,c){c=null!=c?c:a.name;var d=new FormData;d.append("format","xml");d.append("upfile",a,c);var e=new XMLHttpRequest;e.open("POST",OPEN_URL);e.onreadystatechange=function(){b(e)};e.send(d)};EditorUi.prototype.isResampleImage=function(a,b){b=null!=b?b:this.resampleThreshold;return a.length>b};EditorUi.prototype.resizeImage=function(a,b,c,d,e,f){e=null!=e?e:this.maxImageSize;var g=Math.max(1,a.width),q=Math.max(1,a.height);if(d&&this.isResampleImage(b,
@ -7786,7 +7785,7 @@ App=function(a,c,f){EditorUi.call(this,a,c,null!=f?f:"1"==urlParams.lightbox);mx
(new Image).src=mxGraph.prototype.warningImage.src;window.openWindow=mxUtils.bind(this,function(a,c,d){var f=window.open(a);null==f||void 0===f?this.showDialog((new PopupDialog(this,a,c,d)).container,320,140,!0,!0):null!=c&&c()});this.updateUi();a=document.createElement("canvas");this.canvasSupported=!(!a.getContext||!a.getContext("2d"));window.showOpenAlert=mxUtils.bind(this,function(a){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(a)});this.isOffline()||(EditDataDialog.placeholderHelpLink= (new Image).src=mxGraph.prototype.warningImage.src;window.openWindow=mxUtils.bind(this,function(a,c,d){var f=window.open(a);null==f||void 0===f?this.showDialog((new PopupDialog(this,a,c,d)).container,320,140,!0,!0):null!=c&&c()});this.updateUi();a=document.createElement("canvas");this.canvasSupported=!(!a.getContext||!a.getContext("2d"));window.showOpenAlert=mxUtils.bind(this,function(a){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(a)});this.isOffline()||(EditDataDialog.placeholderHelpLink=
"https://support.draw.io/questions/9338941");ColorDialog.recentColors=mxSettings.getRecentColors(ColorDialog.recentColors);this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(a=0;a<App.DrawPlugins.length;a++)try{App.DrawPlugins[a](this)}catch(d){null!=window.console&&console.log("Plugin Error:",d,App.DrawPlugins[a])}window.Draw.loadPlugin=function(a){a(this)}}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google"; "https://support.draw.io/questions/9338941");ColorDialog.recentColors=mxSettings.getRecentColors(ColorDialog.recentColors);this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(a=0;a<App.DrawPlugins.length;a++)try{App.DrawPlugins[a](this)}catch(d){null!=window.console&&console.log("Plugin Error:",d,App.DrawPlugins[a])}window.Draw.loadPlugin=function(a){a(this)}}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";
App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.DROPBOX_APPKEY="libwls2fa9szdji"; App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.DROPBOX_APPKEY="libwls2fa9szdji";
App.pluginRegistry={"4xAKTrabTpTzahoLthkwPNUn":"/plugins/explore.js",ex:"/plugins/explore.js",p1:"/plugins/p1.js",ac:"/plugins/connect.js",acj:"/plugins/connectJira.js",voice:"/plugins/voice.js",tips:"/plugins/tooltips.js",svgdata:"/plugins/svgdata.js",doors:"/plugins/doors.js",electron:"plugins/electron.js",number:"/plugins/number.js",sql:"/plugins/sql.js",props:"/plugins/props.js",text:"/plugins/text.js"}; App.pluginRegistry={"4xAKTrabTpTzahoLthkwPNUn":"/plugins/explore.js",ex:"/plugins/explore.js",p1:"/plugins/p1.js",ac:"/plugins/connect.js",acj:"/plugins/connectJira.js",voice:"/plugins/voice.js",tips:"/plugins/tooltips.js",svgdata:"/plugins/svgdata.js",doors:"/plugins/doors.js",electron:"plugins/electron.js",number:"/plugins/number.js",sql:"/plugins/sql.js",props:"/plugins/props.js",text:"/plugins/text.js",csv:"/plugins/csv.js"};
App.getStoredMode=function(){var a=null;if("undefined"!=typeof Storage)for(var c=document.cookie.split(";"),f=0;f<c.length;f++){var d=mxUtils.trim(c[f]);if("MODE\x3d"==d.substring(0,5)){a=d.substring(5);break}}return a}; App.getStoredMode=function(){var a=null;if("undefined"!=typeof Storage)for(var c=document.cookie.split(";"),f=0;f<c.length;f++){var d=mxUtils.trim(c[f]);if("MODE\x3d"==d.substring(0,5)){a=d.substring(5);break}}return a};
(function(){if(!mxClient.IS_CHROMEAPP&&("1"!=urlParams.offline&&("db.draw.io"==window.location.hostname&&null==urlParams.mode&&(urlParams.mode="dropbox"),App.mode=urlParams.mode,null==App.mode&&(App.mode=App.getStoredMode())),null!=window.mxscript&&("1"!=urlParams.embed&&("function"===typeof window.DriveClient&&("0"!=urlParams.gapi&&isSvgBrowser&&(null==document.documentMode||10<=document.documentMode)?App.mode==App.MODE_GOOGLE||null!=urlParams.state&&""==window.location.hash||null!=window.location.hash&& (function(){if(!mxClient.IS_CHROMEAPP&&("1"!=urlParams.offline&&("db.draw.io"==window.location.hostname&&null==urlParams.mode&&(urlParams.mode="dropbox"),App.mode=urlParams.mode,null==App.mode&&(App.mode=App.getStoredMode())),null!=window.mxscript&&("1"!=urlParams.embed&&("function"===typeof window.DriveClient&&("0"!=urlParams.gapi&&isSvgBrowser&&(null==document.documentMode||10<=document.documentMode)?App.mode==App.MODE_GOOGLE||null!=urlParams.state&&""==window.location.hash||null!=window.location.hash&&
"#G"==window.location.hash.substring(0,2)?mxscript("https://apis.google.com/js/api.js"):"0"==urlParams.chrome&&(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?App.mode==App.MODE_DROPBOX||null!=window.location.hash&&"#D"==window.location.hash.substring(0,2)?mxscript("https://www.dropbox.com/static/api/1/dropins.js",null,"dropboxjs",App.DROPBOX_APPKEY):"0"==urlParams.chrome&& "#G"==window.location.hash.substring(0,2)?mxscript("https://apis.google.com/js/api.js"):"0"==urlParams.chrome&&(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?App.mode==App.MODE_DROPBOX||null!=window.location.hash&&"#D"==window.location.hash.substring(0,2)?mxscript("https://www.dropbox.com/static/api/1/dropins.js",null,"dropboxjs",App.DROPBOX_APPKEY):"0"==urlParams.chrome&&

View file

@ -152,7 +152,8 @@ App.pluginRegistry = {'4xAKTrabTpTzahoLthkwPNUn': '/plugins/explore.js',
'tips': '/plugins/tooltips.js', 'svgdata': '/plugins/svgdata.js', 'tips': '/plugins/tooltips.js', 'svgdata': '/plugins/svgdata.js',
'doors': '/plugins/doors.js', 'electron': 'plugins/electron.js', 'doors': '/plugins/doors.js', 'electron': 'plugins/electron.js',
'number': '/plugins/number.js', 'sql': '/plugins/sql.js', 'number': '/plugins/number.js', 'sql': '/plugins/sql.js',
'props': '/plugins/props.js', 'text': '/plugins/text.js'}; 'props': '/plugins/props.js', 'text': '/plugins/text.js',
'csv': '/plugins/csv.js'};
/** /**
* Function: authorize * Function: authorize

View file

@ -3096,11 +3096,6 @@ var ParseDialog = function(editorUi, title)
plantUmlPngOption.setAttribute('value', 'plantUmlPng'); plantUmlPngOption.setAttribute('value', 'plantUmlPng');
mxUtils.write(plantUmlPngOption, mxResources.get('plantUml') + ' (' + mxResources.get('formatPng') + ')'); mxUtils.write(plantUmlPngOption, mxResources.get('plantUml') + ' (' + mxResources.get('formatPng') + ')');
console.log(/.*\.draw\.io$/.test("www.draw.io"));
console.log(/.*\.draw\.io$/.test("www2.draw.io"));
console.log(/.*\.draw\.io$/.test("www.draw2.io"));
console.log(/.*\.draw\.io$/.test("www.draw.io2"));
// Disabled for invalid hosts via CORS headers // Disabled for invalid hosts via CORS headers
if (/.*\.draw\.io$/.test(window.location.hostname) && Graph.fileSupport && !editorUi.isOffline()) if (/.*\.draw\.io$/.test(window.location.hostname) && Graph.fileSupport && !editorUi.isOffline())
{ {

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+v.join(",")+"}";f=t;return r}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})}); e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();var mxBasePath="https://www.draw.io/mxgraph/",mxLoadStylesheets=mxLoadResources=!1,mxLanguage="en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images"; "]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();var mxBasePath="https://www.draw.io/mxgraph/",mxLoadStylesheets=mxLoadResources=!1,mxLanguage="en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.0.2.15",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&& window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.0.2.16",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&& 0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&& 0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")|| 0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||

View file

@ -1411,7 +1411,7 @@ var FilenameDialog = function(editorUi, filename, buttonText, fn, label, validat
/** /**
* Constructs a new textarea dialog. * Constructs a new textarea dialog.
*/ */
var TextareaDialog = function(editorUi, title, url, fn, cancelFn, cancelTitle, w, h, addButtons, noHide) var TextareaDialog = function(editorUi, title, url, fn, cancelFn, cancelTitle, w, h, addButtons, noHide, noWrap)
{ {
w = (w != null) ? w : 300; w = (w != null) ? w : 300;
h = (h != null) ? h : 120; h = (h != null) ? h : 120;
@ -1435,6 +1435,12 @@ var TextareaDialog = function(editorUi, title, url, fn, cancelFn, cancelTitle, w
td = document.createElement('td'); td = document.createElement('td');
var nameInput = document.createElement('textarea'); var nameInput = document.createElement('textarea');
if (noWrap)
{
nameInput.setAttribute('wrap', 'off');
}
mxUtils.write(nameInput, url || ''); mxUtils.write(nameInput, url || '');
nameInput.style.resize = 'none'; nameInput.style.resize = 'none';
nameInput.style.width = w + 'px'; nameInput.style.width = w + 'px';

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+v.join(",")+"}";f=t;return r}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})}); e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();var mxBasePath="https://www.draw.io/mxgraph/",mxLoadStylesheets=mxLoadResources=!1,mxLanguage="en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images"; "]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();var mxBasePath="https://www.draw.io/mxgraph/",mxLoadStylesheets=mxLoadResources=!1,mxLanguage="en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.0.2.15",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&& window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.0.2.16",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&& 0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&& 0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")|| 0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||

492
war/plugins/csv.js Normal file
View file

@ -0,0 +1,492 @@
/**
* Explore plugin.
*/
Draw.loadPlugin(function(ui)
{
// Adds resource for action
mxResources.parse('fromCsv=From CSV...');
// Return array of string values, or NULL if CSV string not well formed.
function CSVtoArray(text)
{
var re_valid = /^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*)*$/;
var re_value = /(?!\s*$)\s*(?:'([^'\\]*(?:\\[\S\s][^'\\]*)*)'|"([^"\\]*(?:\\[\S\s][^"\\]*)*)"|([^,'"\s\\]*(?:\s+[^,'"\s\\]+)*))\s*(?:,|$)/g;
// Return NULL if input string is not well formed CSV string.
if (!re_valid.test(text)) return null;
var a = []; // Initialize array to receive values.
text.replace(re_value, // "Walk" the string using replace with callback.
function(m0, m1, m2, m3) {
// Remove backslash from \' in single quoted values.
if (m1 !== undefined) a.push(m1.replace(/\\'/g, "'"));
// Remove backslash from \" in double quoted values.
else if (m2 !== undefined) a.push(m2.replace(/\\"/g, '"'));
else if (m3 !== undefined) a.push(m3);
return ''; // Return empty string.
});
// Handle special case of empty last value.
if (/,\s*$/.test(text)) a.push('');
return a;
};
var defaultCsvValue = '##\n' +
'## Example CSV import. Use ## for comments and # for configuration. Paste CSV 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' +
'## Connections between rows ("from": source colum, "to": target column).\n' +
'## Label, style and invert are optional. Defaults are \'\', current style and false.\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 width. Possible value are px or auto. Default is auto.\n' +
'#\n' +
'# width: auto\n' +
'#\n' +
'## Node height. Possible value are px or auto. Default is auto.\n' +
'#\n' +
'# height: auto\n' +
'#\n' +
'## Padding for autosize. Default is 0.\n' +
'#\n' +
'# padding: -26\n' +
'#\n' +
'## Comma-separated list of ignored columns for metadata.\n' +
'#\n' +
'# ignore: id,image,fill,stroke\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 parallel edges. Default is 40.\n' +
'#\n' +
'# edgespacing: 40\n' +
'#\n' +
'## Name of layout. Possible values are auto, none, verticaltree, horizontaltree,\n' +
'## verticalflow, horizontalflow, organic, circle. Default is auto.\n' +
'#\n' +
'# layout: auto\n' +
'#\n' +
'## ---- CSV below this line ----\n' +
'name,position,id,location,manager,email,fill,stroke,refs,url,image\n' +
'Evan Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n' +
'Edward Morrison,Brand Manager,emo,Office 2,Evan Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\n' +
'Ron Donovan,System Admin,rdo,Office 3,Evan Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\n' +
'Tessa Valet,HR Director,tva,Office 4,Evan Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\n';
var dlg = null;
// Adds action
ui.actions.addAction('fromCsv', function()
{
if (dlg == null)
{
dlg = new TextareaDialog(ui, mxResources.get('fromCsv') + ':',
defaultCsvValue, function(newValue)
{
try
{
var lines = newValue.split('\n');
var cells = [];
if (lines.length > 0)
{
// Internal lookup table
var lookups = {};
// Default values
var style = null;
var width = 'auto';
var height = 'auto';
var edgespacing = 40;
var nodespacing = 40;
var padding = 0;
var graph = ui.editor.graph;
var view = graph.view;
var bds = graph.getGraphBounds();
// Delayed after optional layout
var afterInsert = function()
{
graph.setSelectionCells(select);
graph.scrollCellToVisible(graph.getSelectionCell());
};
// Computes unscaled, untranslated graph bounds
var pt = graph.getFreeInsertPoint();
var x0 = pt.x;
var y0 = pt.y;
var y = y0;
// Default label value depends on column names
var label = null;
// Default layout to run.
var layout = 'auto';
// Name of the attribute that contains the parent reference
var parent = null;
// Name of the attribute that contains the references for creating edges
var edges = [];
// Name of the column for hyperlinks
var link = null;
// String array of names to remove from metadata
var ignore = null;
// Read processing instructions first
var index = 0;
while (index < lines.length && lines[index].charAt(0) == '#')
{
var text = lines[index];
index++;
while (index < lines.length && text.charAt(text.length - 1) == '\\' &&
lines[index].charAt(0) == '#')
{
text = text.substring(0, text.length - 1) + mxUtils.trim(lines[index].substring(1));
index++;
}
if (text.charAt(1) != '#')
{
// Processing instruction
var idx = text.indexOf(':');
if (idx > 0)
{
var key = mxUtils.trim(text.substring(1, idx));
var value = mxUtils.trim(text.substring(idx + 1));
if (key == 'label')
{
label = graph.sanitizeHtml(value);
}
else if (key == 'style')
{
style = value;
}
else if (key == 'width')
{
width = value;
}
else if (key == 'height')
{
height = value;
}
else if (key == 'ignore')
{
ignore = value.split(',');
}
else if (key == 'connect')
{
edges.push(JSON.parse(value));
}
else if (key == 'link')
{
link = value;
}
else if (key == 'padding')
{
padding = parseFloat(value);
}
else if (key == 'edgespacing')
{
edgespacing = parseFloat(value);
}
else if (key == 'nodespacing')
{
nodespacing = parseFloat(value);
}
else if (key == 'layout')
{
layout = value;
}
}
}
}
var keys = CSVtoArray(lines[index]);
if (label == null)
{
label = '%' + keys[0] + '%';
}
if (edges != null)
{
for (var e = 0; e < edges.length; e++)
{
if (lookups[edges[e].to] == null)
{
lookups[edges[e].to] = {};
}
}
}
graph.model.beginUpdate();
try
{
for (var i = index + 1; i < lines.length; i++)
{
var values = CSVtoArray(lines[i]);
if (values.length == keys.length)
{
var cell = new mxCell(label, new mxGeometry(x0, y,
0, 0), style || 'whiteSpace=wrap;html=1;');
cell.vertex = true;
for (var j = 0; j < values.length; j++)
{
graph.setAttributeForCell(cell, keys[j], values[j]);
}
graph.setAttributeForCell(cell, 'placeholders', '1');
cell.style = graph.replacePlaceholders(cell, cell.style);
for (var e = 0; e < edges.length; e++)
{
lookups[edges[e].to][cell.getAttribute(edges[e].to)] = cell;
}
if (link != null && link != 'link')
{
graph.setLinkForCell(cell, cell.getAttribute(link));
// Removes attribute
graph.setAttributeForCell(cell, link, null);
}
// Removes ignored attributes after processing above
if (ignore != null)
{
for (var j = 0; j < ignore.length; j++)
{
graph.setAttributeForCell(cell, ignore[j], null);
}
}
// Sets the size
var size = ui.editor.graph.getPreferredSizeForCell(cell);
cell.geometry.width = (width == 'auto') ? size.width + padding : parseFloat(width);
cell.geometry.height = (height == 'auto') ? size.height + padding : parseFloat(height);
y += cell.geometry.height + nodespacing;
cells.push(graph.addCell(cell));
}
}
if (style == null)
{
graph.fireEvent(new mxEventObject('cellsInserted', 'cells', cells));
}
var roots = cells.slice();
var select = cells.slice();
for (var e = 0; e < edges.length; e++)
{
var edge = edges[e];
for (var i = 0; i < cells.length; i++)
{
var cell = cells[i];
var tmp = cell.getAttribute(edge.from);
if (tmp != null)
{
// Removes attribute
graph.setAttributeForCell(cell, edge.from, null);
var refs = tmp.split(',');
for (var j = 0; j < refs.length; j++)
{
var ref = lookups[edge.to][refs[j]];
if (ref != null)
{
select.push(graph.insertEdge(null, null, edge.label || '',
(edge.invert) ? ref : cell, (edge.invert) ? cell : ref,
edge.style || graph.createCurrentEdgeStyle()));
mxUtils.remove((edge.invert) ? cell : ref, roots);
}
}
}
}
}
var edgeLayout = new mxParallelEdgeLayout(graph);
edgeLayout.spacing = edgespacing;
var postProcess = function()
{
edgeLayout.execute(graph.getDefaultParent());
// Aligns cells to grid and/or rounds positions
for (var i = 0; i < cells.length; i++)
{
var geo = graph.getCellGeometry(cells[i]);
geo.x = Math.round(graph.snap(geo.x));
geo.y = Math.round(graph.snap(geo.y));
if (width == 'auto')
{
geo.width = Math.round(graph.snap(geo.width));
}
if (height == 'auto')
{
geo.height = Math.round(graph.snap(geo.height));
}
}
};
if (layout == 'circle')
{
var circleLayout = new mxCircleLayout(graph);
circleLayout.resetEdges = false;
var circleLayoutIsVertexIgnored = circleLayout.isVertexIgnored;
// Ignore other cells
circleLayout.isVertexIgnored = function(vertex)
{
return circleLayoutIsVertexIgnored.apply(this, arguments) ||
mxUtils.indexOf(cells, vertex) < 0;
};
ui.executeLayout(function()
{
circleLayout.execute(graph.getDefaultParent());
postProcess();
}, true, afterInsert);
afterInsert = null;
}
else if (layout == 'horizontaltree' || layout == 'verticaltree' ||
(layout == 'auto' && select.length == 2 * cells.length - 1 && roots.length == 1))
{
// Required for layouts to work with new cells
graph.view.validate();
var treeLayout = new mxCompactTreeLayout(graph, layout == 'horizontaltree');
treeLayout.levelDistance = nodespacing;
treeLayout.edgeRouting = false;
ui.executeLayout(function()
{
treeLayout.execute(graph.getDefaultParent(), (roots.length > 0) ? roots[0] : null);
}, true, afterInsert);
afterInsert = null;
}
else if (layout == 'horizontalflow' || layout == 'verticalflow' ||
(layout == 'auto' && roots.length == 1))
{
// Required for layouts to work with new cells
graph.view.validate();
var flowLayout = new mxHierarchicalLayout(graph,
(layout == 'horizontalflow') ? mxConstants.DIRECTION_WEST : mxConstants.DIRECTION_NORTH);
flowLayout.intraCellSpacing = nodespacing;
ui.executeLayout(function()
{
flowLayout.execute(graph.getDefaultParent(), select);
// Workaround for flow layout moving cells to origin
graph.moveCells(select, x0, y0);
}, true, afterInsert);
afterInsert = null;
}
else if (layout == 'organic' || (layout == 'auto' &&
select.length > cells.length))
{
// Required for layouts to work with new cells
graph.view.validate();
var organicLayout = new mxFastOrganicLayout(graph);
organicLayout.forceConstant = nodespacing * 3;
organicLayout.resetEdges = false;
var organicLayoutIsVertexIgnored = organicLayout.isVertexIgnored;
// Ignore other cells
organicLayout.isVertexIgnored = function(vertex)
{
return organicLayoutIsVertexIgnored.apply(this, arguments) ||
mxUtils.indexOf(cells, vertex) < 0;
};
var edgeLayout = new mxParallelEdgeLayout(graph);
edgeLayout.spacing = edgespacing;
ui.executeLayout(function()
{
organicLayout.execute(graph.getDefaultParent());
postProcess();
}, true, afterInsert);
afterInsert = null;
}
ui.hideDialog();
}
finally
{
graph.model.endUpdate();
}
if (afterInsert != null)
{
afterInsert();
}
}
}
catch (e)
{
ui.handleError(e);
}
}, null, null, 620, 430, null, true, true);
}
ui.showDialog(dlg.container, 640, 520, true, true);
dlg.init();
});
var menu = ui.menus.get('insert');
var oldFunct = menu.funct;
menu.funct = function(menu, parent)
{
oldFunct.apply(this, arguments);
ui.menus.addMenuItems(menu, ['fromCsv'], parent);
};
});