diff --git a/ChangeLog b/ChangeLog index 2f463565..a1fc7f33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +16-AUG-2017: 7.1.4 + +- Adds footer for Desktop Apps Facebook post + 16-AUG-2017: 7.1.3 - Uses mxGraph 3.7.5 beta 9 diff --git a/VERSION b/VERSION index ad955e95..334b5cec 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.1.3 \ No newline at end of file +7.1.4 \ No newline at end of file diff --git a/war/cache.manifest b/war/cache.manifest index 99095648..0cbcf7f4 100644 --- a/war/cache.manifest +++ b/war/cache.manifest @@ -1,7 +1,7 @@ CACHE MANIFEST # THIS FILE WAS GENERATED. DO NOT MODIFY! -# 08/16/2017 02:45 PM +# 08/16/2017 07:47 PM app.html index.html?offline=1 diff --git a/war/js/app.min.js b/war/js/app.min.js index 83a283ec..b3cdb64b 100644 --- a/war/js/app.min.js +++ b/war/js/app.min.js @@ -5890,114 +5890,114 @@ StorageFile.prototype.isRenamable=function(){return!0};StorageFile.prototype.sav StorageFile.prototype.saveFile=function(a,b,c,d){if(this.isEditable()){var f=mxUtils.bind(this,function(){this.isRenamable()&&(this.title=a);try{this.ui.setLocalData(this.title,this.getData(),mxUtils.bind(this,function(){this.setModified(!1);this.contentChanged();null!=c&&c()}))}catch(g){null!=d&&d(g)}});this.isRenamable()&&"."==a.charAt(0)&&null!=d?d({message:mxResources.get("invalidName")}):this.ui.getLocalData(a,mxUtils.bind(this,function(b){this.isRenamable()&&this.getTitle()!=a&&null!=b?this.ui.confirm(mxResources.get("replaceIt", [a]),f,d):f()}))}else null!=c&&c()};StorageFile.prototype.rename=function(a,b,c){var d=this.getTitle();this.title=a;this.hasSameExtension(d,a)||this.setData(this.ui.getFileData());this.saveFile(a,!1,mxUtils.bind(this,function(){d!=a&&this.ui.removeLocalData(d,b)}),c)};StorageFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.saveFile(this.getTitle())}; StorageFile.prototype.destroy=function(){DrawioFile.prototype.destroy.apply(this,arguments);null!=this.storageListener&&(mxEvent.removeListener(window,"storage",this.storageListener),this.storageListener=null)};StorageLibrary=function(a,b,c){StorageFile.call(this,a,b,c)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(a,b,c){this.saveFile(a,!1,b,c)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; -StorageLibrary.prototype.isRenamable=function(a,b,c){return".scratchpad"!=this.title};StorageLibrary.prototype.open=function(){};UrlLibrary=function(a,b,c){StorageFile.call(this,a,b,c);a=c;b=a.lastIndexOf("/");0<=b&&(a=a.substring(b+1));this.fname=a};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(a,b,c){return!1};UrlLibrary.prototype.saveAs=function(a,b,c){};UrlLibrary.prototype.open=function(){};var StorageDialog=function(a,b,c){function d(e,d,f,g,q,t){function w(){mxEvent.addListener(u,"click",null!=t?t:function(){f!=App.MODE_GOOGLE||a.isDriveDomain()?f==App.MODE_GOOGLE&&a.spinner.spin(document.body,mxResources.get("authorizing"))?a.drive.checkToken(mxUtils.bind(this,function(){a.spinner.stop();a.setMode(f,l.checked);b()})):(a.setMode(f,l.checked),b()):window.location.hostname=DriveClient.prototype.newAppHostname})}var u=document.createElement("a");u.style.overflow="hidden";u.style.display= -mxClient.IS_QUIRKS?"inline":"inline-block";u.className="geBaseButton";u.style.fontSize="11px";u.style.position="relative";u.style.margin="4px";u.style.padding="8px 10px 12px 10px";u.style.width="68px";u.style.height="80px";u.style.whiteSpace="nowrap";u.setAttribute("title",d);mxClient.IS_QUIRKS&&(u.style.cssFloat="left",u.style.zoom="1");var x=document.createElement("div");x.style.textOverflow="ellipsis";x.style.overflow="hidden";if(null!=e){var k=document.createElement("img");k.setAttribute("src", -e);k.setAttribute("border","0");k.setAttribute("align","absmiddle");k.style.width="60px";k.style.height="60px";k.style.paddingBottom="6px";u.appendChild(k)}else x.style.paddingTop="5px",x.style.whiteSpace="normal",mxClient.IS_IOS?(u.style.padding="0px 10px 20px 10px",u.style.top="6px"):mxClient.IS_FF&&(x.style.paddingTop="0px",x.style.marginTop="-2px");u.appendChild(x);mxUtils.write(x,d);if(null!=q)for(e=0;e=c&&(mxUtils.br(h),m=0)}c=null!=c?c:3;var f=document.createElement("div");f.style.textAlign="center";f.style.whiteSpace="nowrap";f.style.paddingTop="0px";f.style.paddingBottom="20px";var g=a.addLanguageMenu(f);null!=g&&(g.style.bottom="28px");if(!a.isOffline()&&1 '+mxResources.get("googleDriveMissingClickHere")+"",f.appendChild(n))},5E3);this.container=f},SplashDialog=function(a){var b=document.createElement("div");b.style.textAlign= "center";a.addLanguageMenu(b);var c=null,d=a.getServiceCount();!a.isOffline()&&1"+g.innerHTML,g.style.paddingBottom="8px",g.style.paddingTop="8px",g.style.height="auto",g.style.width="40%");a.editor.cancelFirst&&m.appendChild(g);f=mxUtils.button(f||mxResources.get("ok"),function(){a.hideDialog();null!=c&&c(n.checked)});m.appendChild(f);null!=k?(f.innerHTML=k+"
"+f.innerHTML+"
",f.style.paddingBottom="8px",f.style.paddingTop= -"8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";a.editor.cancelFirst||m.appendChild(g);l.appendChild(m);h?(m.style.marginTop="10px",m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(n),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),m.appendChild(k),l.appendChild(m),mxEvent.addListener(k,"click",function(a){n.checked=!n.checked;mxEvent.consume(a)})):m.style.marginTop="16px";this.container= -l},ErrorDialog=function(a,b,c,d,f,g,k,e,h){h=null!=h?h:!0;var l=document.createElement("div");l.style.textAlign="center";if(null!=b){var m=document.createElement("div");m.style.padding="0px";m.style.margin="0px";m.style.fontSize="18px";m.style.paddingBottom="16px";m.style.marginBottom="16px";m.style.borderBottom="1px solid #c0c0c0";m.style.color="gray";mxUtils.write(m,b);l.appendChild(m)}b=document.createElement("div");b.style.padding="6px";b.innerHTML=c;l.appendChild(b);c=document.createElement("div"); -c.style.marginTop="16px";c.style.textAlign="right";null!=g&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();g()}),b.className="geBtn",c.appendChild(b),c.style.textAlign="center");var n=mxUtils.button(d,function(){h&&a.hideDialog();null!=f&&f()});n.className="geBtn";c.appendChild(n);null!=k&&(d=mxUtils.button(k,function(){h&&a.hideDialog();null!=e&&e()}),d.className="geBtn gePrimaryBtn",c.appendChild(d));this.init=function(){n.focus()};l.appendChild(c);this.container=l},EmbedDialog= -function(a,b,c,d,f){d=document.createElement("div");var g=/^https?:\/\//.test(b)||/^mailto:\/\//.test(b);mxUtils.write(d,mxResources.get(5E5>b.length?g?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(d);var k=document.createElement("div");k.style.position="absolute";k.style.top="30px";k.style.right="30px";k.style.color="gray";mxUtils.write(k,a.formatFileSize(b.length));d.appendChild(k);var e=document.createElement("textarea");e.setAttribute("autocomplete","off");e.setAttribute("autocorrect","off"); +a.showSplash(!0)}),l.appendChild(f));b.appendChild(l);this.container=b},ConfirmDialog=function(a,b,c,d,f,g,l,e,h){var k=document.createElement("div");k.style.textAlign="center";var m=document.createElement("div");m.style.padding="6px";m.style.overflow="auto";m.style.maxHeight="40px";mxClient.IS_QUIRKS&&(m.style.height="60px");mxUtils.write(m,b);k.appendChild(m);m=document.createElement("div");m.style.textAlign="center";m.style.whiteSpace="nowrap";var n=document.createElement("input");n.setAttribute("type", +"checkbox");g=mxUtils.button(g||mxResources.get("cancel"),function(){a.hideDialog();null!=d&&d(n.checked)});g.className="geBtn";null!=e&&(g.innerHTML=e+"
"+g.innerHTML,g.style.paddingBottom="8px",g.style.paddingTop="8px",g.style.height="auto",g.style.width="40%");a.editor.cancelFirst&&m.appendChild(g);f=mxUtils.button(f||mxResources.get("ok"),function(){a.hideDialog();null!=c&&c(n.checked)});m.appendChild(f);null!=l?(f.innerHTML=l+"
"+f.innerHTML+"
",f.style.paddingBottom="8px",f.style.paddingTop= +"8px",f.style.height="auto",f.className="geBtn",f.style.width="40%"):f.className="geBtn gePrimaryBtn";a.editor.cancelFirst||m.appendChild(g);k.appendChild(m);h?(m.style.marginTop="10px",m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(n),l=document.createElement("span"),mxUtils.write(l," "+mxResources.get("rememberThisSetting")),m.appendChild(l),k.appendChild(m),mxEvent.addListener(l,"click",function(a){n.checked=!n.checked;mxEvent.consume(a)})):m.style.marginTop="16px";this.container= +k},ErrorDialog=function(a,b,c,d,f,g,l,e,h){h=null!=h?h:!0;var k=document.createElement("div");k.style.textAlign="center";if(null!=b){var m=document.createElement("div");m.style.padding="0px";m.style.margin="0px";m.style.fontSize="18px";m.style.paddingBottom="16px";m.style.marginBottom="16px";m.style.borderBottom="1px solid #c0c0c0";m.style.color="gray";mxUtils.write(m,b);k.appendChild(m)}b=document.createElement("div");b.style.padding="6px";b.innerHTML=c;k.appendChild(b);c=document.createElement("div"); +c.style.marginTop="16px";c.style.textAlign="right";null!=g&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();g()}),b.className="geBtn",c.appendChild(b),c.style.textAlign="center");var n=mxUtils.button(d,function(){h&&a.hideDialog();null!=f&&f()});n.className="geBtn";c.appendChild(n);null!=l&&(d=mxUtils.button(l,function(){h&&a.hideDialog();null!=e&&e()}),d.className="geBtn gePrimaryBtn",c.appendChild(d));this.init=function(){n.focus()};k.appendChild(c);this.container=k},EmbedDialog= +function(a,b,c,d,f){d=document.createElement("div");var g=/^https?:\/\//.test(b)||/^mailto:\/\//.test(b);mxUtils.write(d,mxResources.get(5E5>b.length?g?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(d);var l=document.createElement("div");l.style.position="absolute";l.style.top="30px";l.style.right="30px";l.style.color="gray";mxUtils.write(l,a.formatFileSize(b.length));d.appendChild(l);var e=document.createElement("textarea");e.setAttribute("autocomplete","off");e.setAttribute("autocorrect","off"); e.setAttribute("autocapitalize","off");e.setAttribute("spellcheck","false");e.style.marginTop="10px";e.style.resize="none";e.style.height="150px";e.style.width="440px";e.style.border="1px solid gray";e.value=mxResources.get("updatingDocument");d.appendChild(e);mxUtils.br(d);this.init=function(){window.setTimeout(function(){5E5>b.length?(e.value=b,e.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?e.select():document.execCommand("selectAll",!1,null)):(e.setAttribute("readonly", -"true"),e.value=b.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+")")},0)};k=document.createElement("div");k.style.position="absolute";k.style.bottom="36px";k.style.right="32px";var h=null;mxClient.IS_CHROMEAPP||navigator.standalone||!(g||mxClient.IS_SVG&&(null==document.documentMode||9b.length?"preview":"openInNewWindow"),function(){var d=5E5>b.length?e.value:b;if(null!=f)f(d);else if(g)try{var h=window.open(d);(null==c|| -0"+encodeURIComponent(mxResources.get("preview"))+''+b+"");l.close()}}),h.className= -"geBtn",k.appendChild(h));if(!g||7500b.length){var m=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(e.value);window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),l=document.createElement("img");l.setAttribute("src", -Editor.facebookImage);l.setAttribute("border","0");m.appendChild(l);m.setAttribute("title",mxResources.get("facebook")+" ("+a.formatFileSize(51200)+" max)");m.style.verticalAlign="bottom";m.style.paddingTop="4px";m.style.minWidth="46px";m.className="geBtn";k.appendChild(m)}7168>b.length&&(m=mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(e.value);window.open(b)}catch(p){a.handleError({message:p.message|| -mxResources.get("drawingTooLarge")})}}),l=document.createElement("img"),l.setAttribute("src",Editor.tweetImage),l.setAttribute("border","0"),l.style.marginBottom="5px",m.appendChild(l),m.setAttribute("title",mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),m.style.verticalAlign="bottom",m.style.paddingTop="4px",m.style.minWidth="46px",m.className="geBtn",k.appendChild(m))}l=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});k.appendChild(l);m=mxUtils.button(mxResources.get("copy"), -function(){e.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?e.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});5E5>b.length?mxClient.IS_SF||null!=document.documentMode?l.className="geBtn gePrimaryBtn":(k.appendChild(m),m.className="geBtn gePrimaryBtn",l.className="geBtn"):(k.appendChild(h),l.className="geBtn",h.className="geBtn gePrimaryBtn");d.appendChild(k);this.container=d},GoogleSitesDialog=function(a, +"true"),e.value=b.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+")")},0)};l=document.createElement("div");l.style.position="absolute";l.style.bottom="36px";l.style.right="32px";var h=null;mxClient.IS_CHROMEAPP||navigator.standalone||!(g||mxClient.IS_SVG&&(null==document.documentMode||9b.length?"preview":"openInNewWindow"),function(){var d=5E5>b.length?e.value:b;if(null!=f)f(d);else if(g)try{var h=window.open(d);(null==c|| +0"+encodeURIComponent(mxResources.get("preview"))+''+b+"");k.close()}}),h.className= +"geBtn",l.appendChild(h));if(!g||7500b.length){var m=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(e.value);window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),k=document.createElement("img");k.setAttribute("src", +Editor.facebookImage);k.setAttribute("border","0");m.appendChild(k);m.setAttribute("title",mxResources.get("facebook")+" ("+a.formatFileSize(51200)+" max)");m.style.verticalAlign="bottom";m.style.paddingTop="4px";m.style.minWidth="46px";m.className="geBtn";l.appendChild(m)}7168>b.length&&(m=mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(e.value);window.open(b)}catch(p){a.handleError({message:p.message|| +mxResources.get("drawingTooLarge")})}}),k=document.createElement("img"),k.setAttribute("src",Editor.tweetImage),k.setAttribute("border","0"),k.style.marginBottom="5px",m.appendChild(k),m.setAttribute("title",mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),m.style.verticalAlign="bottom",m.style.paddingTop="4px",m.style.minWidth="46px",m.className="geBtn",l.appendChild(m))}k=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});l.appendChild(k);m=mxUtils.button(mxResources.get("copy"), +function(){e.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?e.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});5E5>b.length?mxClient.IS_SF||null!=document.documentMode?k.className="geBtn gePrimaryBtn":(l.appendChild(m),m.className="geBtn gePrimaryBtn",k.className="geBtn"):(l.appendChild(h),k.className="geBtn",h.className="geBtn gePrimaryBtn");d.appendChild(l);this.container=d},GoogleSitesDialog=function(a, b){function c(){var a=null!=y.getTitle()?y.getTitle():this.defaultFilename;if(C.checked&&""!=p.value){var b="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(p.value));null!=a&&(b+="&title="+encodeURIComponent(a));0a)return String.fromCharCode(48+a);a-=10;if(26>a)return String.fromCharCode(65+a);a-=26;if(26>a)return String.fromCharCode(97+a);a-=26;return 0==a?"-":1==a?"_":"?"},l=function(a,b,e){c1=a>>2;c2=(a&3)<<4|b>>4;c3=(b&15)<<2|e>>6;c4=e&63;r="";r+=h(c1&63);r+=h(c2&63);r+=h(c3&63);return r+= -h(c4&63)},g=new XMLHttpRequest;g.open("GET",c+function(a){r="";for(m=0;mthis.status?(e=new FileReader,e.readAsDataURL(this.response),e.onload=function(e){var c=new Image;c.onload=function(){a.spinner.stop(); +a.photoPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.photoPicker.setVisible(!0);a.movePickersToTop()}))}),m.className="geBtn",d.appendChild(m))}m=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();b(""!=f.value?new mxImage(mxUtils.trim(f.value),e.value,h.value):null)});m.className="geBtn gePrimaryBtn";d.appendChild(m);a.editor.cancelFirst||d.appendChild(k);c.appendChild(d);this.container=c},ParseDialog=function(a,b){function c(b,e){var c=b.split("\n");if("plantUmlPng"== +e||"plantUmlSvg"==e){var c="plantUmlPng"==e?"https://exp.draw.io/plantuml2/png/":"https://exp.draw.io/plantuml2/svg/",d=a.editor.graph;if(a.spinner.spin(document.body,mxResources.get("inserting"))){var h=function(a){if(10>a)return String.fromCharCode(48+a);a-=10;if(26>a)return String.fromCharCode(65+a);a-=26;if(26>a)return String.fromCharCode(97+a);a-=26;return 0==a?"-":1==a?"_":"?"},k=function(a,b,e){c1=a>>2;c2=(a&3)<<4|b>>4;c3=(b&15)<<2|e>>6;c4=e&63;r="";r+=h(c1&63);r+=h(c2&63);r+=h(c3&63);return r+= +h(c4&63)},g=new XMLHttpRequest;g.open("GET",c+function(a){r="";for(m=0;mthis.status?(e=new FileReader,e.readAsDataURL(this.response),e.onload=function(e){var c=new Image;c.onload=function(){a.spinner.stop(); d.getModel().beginUpdate();try{cell=d.insertVertex(null,null,b,f.x,f.y,c.width,c.height,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+a.convertDataUri(e.target.result)+";")}finally{d.getModel().endUpdate()}d.setSelectionCell(cell);d.scrollCellToVisible(d.getSelectionCell())};c.src=e.target.result},e.onerror=function(b){a.handleError(b)}):(a.spinner.stop(),a.handleError(e))};g.onerror=function(b){a.handleError(b)};g.send()}}else if("list"==e){if(0");if(2==A.length){var B=k(A[0]),A=k(A[1]),F=new mxCell("",new mxGeometry);F.edge=!0;B.insertEdge(F,!0);A.insertEdge(F,!1);y.push(F)}}if(0");if(2==A.length){var B=l(A[0]),A=l(A[1]),F=new mxCell("",new mxGeometry);F.edge=!0;B.insertEdge(F,!0);A.insertEdge(F,!1);y.push(F)}}if(0 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml": -"plantUmlSvg"==e.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml":";Example:\na->b\nb->c\nc->a\n"}var f=a.editor.graph.getFreeInsertPoint(),g=document.createElement("div");g.style.textAlign="right";var k=document.createElement("textarea");k.style.resize="none";k.style.width="100%";k.style.height="354px";k.style.marginBottom= -"16px";var e=document.createElement("select"),h=document.createElement("option");h.setAttribute("value","list");h.setAttribute("selected","selected");mxUtils.write(h,mxResources.get("list"));e.appendChild(h);h=document.createElement("option");h.setAttribute("value","diagram");mxUtils.write(h,mxResources.get("diagram"));e.appendChild(h);h=document.createElement("option");h.setAttribute("value","plantUmlSvg");mxUtils.write(h,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()&&(e.appendChild(h),e.appendChild(l));var m=d();k.value=m;g.appendChild(k);this.init=function(){k.focus()};Graph.fileSupport&&(k.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),k.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0=a.getStatus()&&(w.removeAttribute("disabled"),g(h,a.getText(),b),l&&f())}))});mxEvent.addListener(h,"dblclick",function(a){l=!0})}else h.innerHTML='
'+ -mxResources.get(e)+"
",d&&g(h),mxEvent.addListener(h,"click",function(a){g(h)}),mxEvent.addListener(h,"dblclick",function(a){f()});u.appendChild(h)}function e(){function a(){for(var a=!0;b=u.scrollHeight&&(a(),mxEvent.consume(b))});var e=null,c;for(c in v){var d=document.createElement("div"),h=mxResources.get(c), -l=v[c];null==h&&(h=c.substring(0,1).toUpperCase()+c.substring(1));18 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml":";Example:\na->b\nb->c\nc->a\n"}var f=a.editor.graph.getFreeInsertPoint(),g=document.createElement("div");g.style.textAlign="right";var l=document.createElement("textarea");l.style.resize="none";l.style.width="100%";l.style.height="354px";l.style.marginBottom= +"16px";var e=document.createElement("select"),h=document.createElement("option");h.setAttribute("value","list");h.setAttribute("selected","selected");mxUtils.write(h,mxResources.get("list"));e.appendChild(h);h=document.createElement("option");h.setAttribute("value","diagram");mxUtils.write(h,mxResources.get("diagram"));e.appendChild(h);h=document.createElement("option");h.setAttribute("value","plantUmlSvg");mxUtils.write(h,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var k=document.createElement("option"); +k.setAttribute("value","plantUmlPng");mxUtils.write(k,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");/.*\.draw\.io$/.test(window.location.hostname)&&Graph.fileSupport&&!a.isOffline()&&(e.appendChild(h),e.appendChild(k));var m=d();l.value=m;g.appendChild(l);this.init=function(){l.focus()};Graph.fileSupport&&(l.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),l.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0=a.getStatus()&&(w.removeAttribute("disabled"),g(h,a.getText(),b),k&&f())}))});mxEvent.addListener(h,"dblclick",function(a){k=!0})}else h.innerHTML='
'+ +mxResources.get(e)+"
",d&&g(h),mxEvent.addListener(h,"click",function(a){g(h)}),mxEvent.addListener(h,"dblclick",function(a){f()});u.appendChild(h)}function e(){function a(){for(var a=!0;b=u.scrollHeight&&(a(),mxEvent.consume(b))});var e=null,c;for(c in v){var d=document.createElement("div"),h=mxResources.get(c), +k=v[c];null==h&&(h=c.substring(0,1).toUpperCase()+c.substring(1));18b.lastIndexOf(".")&&0>h){var e=null!=e?e:y.value,l="";e==App.MODE_GOOGLE?l=a.drive.extension:e==App.MODE_GITHUB? -l=a.gitHub.extension:e==App.MODE_DROPBOX?l=a.dropbox.extension:e==App.MODE_ONEDRIVE?l=a.oneDrive.extension:e==App.MODE_DEVICE&&(l=".xml");0<=h&&(c=c.substring(0,h));z.value=c+l}}u(d)})}var f=document.createElement("a");f.style.overflow="hidden";var w=document.createElement("img");w.src=e;w.setAttribute("border","0");w.setAttribute("align","absmiddle");w.style.width="60px";w.style.height="60px";w.style.paddingBottom="6px";f.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";f.className="geBaseButton"; +tooltip:a.getAttribute("url")})}}a=a.nextSibling}e()}})}mxEvent.addListener(n,"keypress",function(a){13==a.keyCode&&f()});k=document.createElement("div");k.style.marginTop=b?"4px":"16px";k.style.textAlign="right";k.style.position="absolute";k.style.left="40px";k.style.bottom="30px";k.style.right="40px";m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});m.className="geBtn";a.editor.cancelFirst&&k.appendChild(m);if(!b&&!a.isOffline()&&c&&null==d){var y=mxUtils.button(mxResources.get("help"), +function(){window.open("https://support.draw.io/display/DO/Creating+and+Opening+Files")});y.className="geBtn";k.appendChild(y)}b||"1"==urlParams.embed||(b=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var b=new FilenameDialog(a,"",mxResources.get("create"),function(b){null!=b&&0b.lastIndexOf(".")&&0>h){var e=null!=e?e:y.value,k="";e==App.MODE_GOOGLE?k=a.drive.extension:e==App.MODE_GITHUB? +k=a.gitHub.extension:e==App.MODE_DROPBOX?k=a.dropbox.extension:e==App.MODE_ONEDRIVE?k=a.oneDrive.extension:e==App.MODE_DEVICE&&(k=".xml");0<=h&&(c=c.substring(0,h));z.value=c+k}}u(d)})}var f=document.createElement("a");f.style.overflow="hidden";var w=document.createElement("img");w.src=e;w.setAttribute("border","0");w.setAttribute("align","absmiddle");w.style.width="60px";w.style.height="60px";w.style.paddingBottom="6px";f.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";f.className="geBaseButton"; f.style.position="relative";f.style.margin="4px";f.style.padding="8px 8px 10px 8px";f.style.whiteSpace="nowrap";f.appendChild(w);mxClient.IS_QUIRKS&&(f.style.cssFloat="left",f.style.zoom="1");f.style.color="gray";f.style.fontSize="11px";var g=document.createElement("div");f.appendChild(g);mxUtils.write(g,c);if(null!=h&&null==a[h]){w.style.visibility="hidden";mxUtils.setOpacity(g,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(f);var q=window.setTimeout(function(){null==a[h]&&(m.stop(),f.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[h]&&(window.clearTimeout(q),mxUtils.setOpacity(g,100),w.style.visibility="",m.stop(),l())}))}else l();C.appendChild(f);++E==n&&(mxUtils.br(C),E=0)}function u(b){var e=z.value;if(null==b||null!=e&&0JGraph Ltd.
All Rights Reserved.';b.appendChild(c);mxEvent.addListener(b,"click",function(b){"A"!=mxEvent.getSource(b).nodeName&&a.hideDialog()});this.container=b},FeedbackDialog=function(a){var b= document.createElement("div"),c=document.createElement("div");mxUtils.write(c,mxResources.get("sendYourFeedbackToDrawIo"));c.style.fontSize="18px";c.style.marginBottom="18px";b.appendChild(c);c=document.createElement("div");mxUtils.write(c,mxResources.get("yourEmailAddress")+" ("+mxResources.get("required")+")");b.appendChild(c);var d=document.createElement("input");d.setAttribute("type","text");d.style.marginTop="6px";d.style.width="600px";var f=mxUtils.button(mxResources.get("sendMessage"),function(){var b= -(k.checked?"\nDiagram:\n"+a.getFileData():"")+"\nBrowser:\n"+navigator.userAgent;b.length>FeedbackDialog.maxAttachmentSize?a.alert(mxResources.get("drawingTooLarge")):(a.hideDialog(),a.spinner.spin(document.body)&&mxUtils.post(null!=FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(d.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent("Feedback:\n"+h.value+b),function(b){a.spinner.stop(); +(l.checked?"\nDiagram:\n"+a.getFileData():"")+"\nBrowser:\n"+navigator.userAgent;b.length>FeedbackDialog.maxAttachmentSize?a.alert(mxResources.get("drawingTooLarge")):(a.hideDialog(),a.spinner.spin(document.body)&&mxUtils.post(null!=FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(d.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent("Feedback:\n"+h.value+b),function(b){a.spinner.stop(); 200<=b.getStatus()&&299>=b.getStatus()?a.alert(mxResources.get("feedbackSent")):a.alert(mxResources.get("errorSendingFeedback"))},function(){a.spinner.stop();a.alert(mxResources.get("errorSendingFeedback"))}))});f.className="geBtn gePrimaryBtn";f.setAttribute("disabled","disabled");var g=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(d,"change",function(){0':(g.innerHTML="
",mxUtils.write(g,mxResources.get("noPreview"))),null!=k&&(k.style.backgroundColor=""),k=c,k.style.backgroundColor="#ebf2f9",null!=a&&mxEvent.consume(a)};mxEvent.addListener(c,"click",n);mxEvent.addListener(c, -"dblclick",function(a){m.checked=!m.checked;mxEvent.consume(a)});e.push(function(){return m.checked?b.id:null});0==l&&0==d&&n()})(b.entries[d])})(c[l]);d.style.padding="30px";d.appendChild(b);d.appendChild(f);d.appendChild(g);c=document.createElement("div");c.className="geDialogFooter";c.style.position="absolute";c.style.paddingRight="16px";c.style.color="gray";c.style.left="0px";c.style.right="0px";c.style.bottom="0px";c.style.height="60px";c.style.lineHeight="52px";mxClient.IS_QUIRKS&&(c.style.width= +f.style.width="202px";f.style.bottom="60px";f.style.overflow="auto";mxClient.IS_QUIRKS&&(f.style.height="437px",f.style.marginTop="1px");g.style.position="absolute";g.style.left="202px";g.style.right="0px";g.style.top="40px";g.style.bottom="60px";g.style.overflow="auto";g.style.borderLeft="1px solid rgb(211, 211, 211)";g.style.textAlign="center";mxClient.IS_QUIRKS&&(g.style.width=parseInt(b.style.width)-202+"px",g.style.height=f.style.height,g.style.marginTop=f.style.marginTop);var l=null,e=[],h= +document.createElement("div");h.style.position="relative";h.style.left="0px";h.style.right="0px";for(var k=0;k':(g.innerHTML="
",mxUtils.write(g,mxResources.get("noPreview"))),null!=l&&(l.style.backgroundColor=""),l=c,l.style.backgroundColor="#ebf2f9",null!=a&&mxEvent.consume(a)};mxEvent.addListener(c,"click",n);mxEvent.addListener(c, +"dblclick",function(a){m.checked=!m.checked;mxEvent.consume(a)});e.push(function(){return m.checked?b.id:null});0==k&&0==d&&n()})(b.entries[d])})(c[k]);d.style.padding="30px";d.appendChild(b);d.appendChild(f);d.appendChild(g);c=document.createElement("div");c.className="geDialogFooter";c.style.position="absolute";c.style.paddingRight="16px";c.style.color="gray";c.style.left="0px";c.style.right="0px";c.style.bottom="0px";c.style.height="60px";c.style.lineHeight="52px";mxClient.IS_QUIRKS&&(c.style.width= b.style.width,c.style.paddingTop="12px");var m=document.createElement("input");m.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)b=document.createElement("span"),b.style.paddingRight="20px",b.appendChild(m),mxUtils.write(b," "+mxResources.get("rememberThisSetting")),m.checked=!0,m.defaultChecked=!0,mxEvent.addListener(b,"click",function(a){mxEvent.getSource(a)!=m&&(m.checked=!m.checked,mxEvent.consume(a))}),mxClient.IS_QUIRKS&&(b.style.position="relative",b.style.top="-6px"), c.appendChild(b);b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});b.className="geBtn";var n=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();for(var b=[],c=0;cmxUtils.indexOf(f,d[a])&&f.push(d[a]);b()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");a.showDialog(e.container,300,80,!0,!0);e.init()});g.className="geBtn";var k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";var e=mxUtils.button(mxResources.get("apply"),function(){mxSettings.setPlugins(f);mxSettings.save();a.hideDialog();a.alert(mxResources.get("restartForChangeRequired"))});e.className= -"geBtn gePrimaryBtn";var h=document.createElement("div");h.style.marginTop="14px";h.style.textAlign="right";a.editor.cancelFirst?(h.appendChild(k),h.appendChild(g),h.appendChild(e)):(h.appendChild(g),h.appendChild(e),h.appendChild(k));c.appendChild(h);this.container=c},CropImageDialog=function(a,b,c){var d=document.createElement("div"),f=document.createElement("table"),g=document.createElement("tbody"),k=document.createElement("tr"),e=document.createElement("td"),h=document.createElement("td");f.style.paddingLeft= -"6px";mxUtils.write(e,mxResources.get("left")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width="100px";l.value="0";this.init=function(){l.focus();l.select()};h.appendChild(l);k.appendChild(e);k.appendChild(h);g.appendChild(k);k=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("top")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value="0"; -h.appendChild(m);k.appendChild(e);k.appendChild(h);g.appendChild(k);k=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("right")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value="0";h.appendChild(n);k.appendChild(e);k.appendChild(h);g.appendChild(k);k=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("bottom")+ -":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value="0";h.appendChild(p);k.appendChild(e);k.appendChild(h);g.appendChild(k);k=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("circle")+":");k.appendChild(e);var t=document.createElement("input");t.setAttribute("type","checkbox");h.appendChild(t);k.appendChild(h);g.appendChild(k);f.appendChild(g);d.appendChild(f);var f=mxUtils.button(mxResources.get("cancel"), -function(){a.hideDialog()}),q=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var e=document.createElement("canvas"),d=e.getContext("2d"),h=new Image;h.onload=function(){var a=h.width,b=h.height,f=parseInt(l.value),g=parseInt(m.value),a=Math.max(1,a-f-parseInt(n.value)),b=Math.max(1,b-g-parseInt(p.value));e.width=a;e.height=b;t.checked&&(d.fillStyle="#000000",d.arc(a/2,b/2,Math.min(a/2,b/2),0,2*Math.PI),d.fill(),d.globalCompositeOperation="source-in");d.drawImage(h,f,g,a,b,0,0,a, -b);c(e.toDataURL())};h.src=b});mxEvent.addListener(d,"keypress",function(a){13==a.keyCode&&q.click()});g=document.createElement("div");g.style.marginTop="20px";g.style.textAlign="right";a.editor.cancelFirst?(g.appendChild(f),g.appendChild(q)):(g.appendChild(q),g.appendChild(f));d.appendChild(g);this.container=d},EditGeometryDialog=function(a,b){var c=a.editor.graph,d=1==b.length?c.getCellGeometry(b[0]):null,f=document.createElement("div"),g=document.createElement("table"),k=document.createElement("tbody"), -e=document.createElement("tr"),h=document.createElement("td"),l=document.createElement("td");g.style.paddingLeft="6px";mxUtils.write(h,mxResources.get("left")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=d?d.x:"";this.init=function(){m.focus();m.select()};l.appendChild(m);e.appendChild(h);e.appendChild(l);k.appendChild(e);e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("top")+ -":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.y:"";l.appendChild(n);e.appendChild(h);e.appendChild(l);k.appendChild(e);e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("width")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=null!=d?d.width:"";l.appendChild(p);e.appendChild(h);e.appendChild(l);k.appendChild(e); -e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("height")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=d?d.height:"";l.appendChild(t);e.appendChild(h);e.appendChild(l);k.appendChild(e);e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("rotation")+":");var q=document.createElement("input"); -q.setAttribute("type","text");q.style.width="100px";q.value=1==b.length?mxUtils.getValue(c.getCellStyle(b[0]),mxConstants.STYLE_ROTATION,0):"";l.appendChild(q);e.appendChild(h);e.appendChild(l);k.appendChild(e);g.appendChild(k);f.appendChild(g);var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),w=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();c.getModel().beginUpdate();try{for(var e=0;emxUtils.indexOf(f,d[a])&&f.push(d[a]);b()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");a.showDialog(c.container,300,80,!0,!0);c.init()});g.className="geBtn";var l=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});l.className="geBtn";var e=mxUtils.button(mxResources.get("apply"),function(){mxSettings.setPlugins(f);mxSettings.save();a.hideDialog();a.alert(mxResources.get("restartForChangeRequired"))});e.className= +"geBtn gePrimaryBtn";var h=document.createElement("div");h.style.marginTop="14px";h.style.textAlign="right";a.editor.cancelFirst?(h.appendChild(l),h.appendChild(g),h.appendChild(e)):(h.appendChild(g),h.appendChild(e),h.appendChild(l));c.appendChild(h);this.container=c},CropImageDialog=function(a,b,c){var d=document.createElement("div"),f=document.createElement("table"),g=document.createElement("tbody"),l=document.createElement("tr"),e=document.createElement("td"),h=document.createElement("td");f.style.paddingLeft= +"6px";mxUtils.write(e,mxResources.get("left")+":");var k=document.createElement("input");k.setAttribute("type","text");k.style.width="100px";k.value="0";this.init=function(){k.focus();k.select()};h.appendChild(k);l.appendChild(e);l.appendChild(h);g.appendChild(l);l=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("top")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value="0"; +h.appendChild(m);l.appendChild(e);l.appendChild(h);g.appendChild(l);l=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("right")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value="0";h.appendChild(n);l.appendChild(e);l.appendChild(h);g.appendChild(l);l=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("bottom")+ +":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value="0";h.appendChild(p);l.appendChild(e);l.appendChild(h);g.appendChild(l);l=document.createElement("tr");e=document.createElement("td");h=document.createElement("td");mxUtils.write(e,mxResources.get("circle")+":");l.appendChild(e);var t=document.createElement("input");t.setAttribute("type","checkbox");h.appendChild(t);l.appendChild(h);g.appendChild(l);f.appendChild(g);d.appendChild(f);var f=mxUtils.button(mxResources.get("cancel"), +function(){a.hideDialog()}),q=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var e=document.createElement("canvas"),d=e.getContext("2d"),h=new Image;h.onload=function(){var a=h.width,b=h.height,f=parseInt(k.value),g=parseInt(m.value),a=Math.max(1,a-f-parseInt(n.value)),b=Math.max(1,b-g-parseInt(p.value));e.width=a;e.height=b;t.checked&&(d.fillStyle="#000000",d.arc(a/2,b/2,Math.min(a/2,b/2),0,2*Math.PI),d.fill(),d.globalCompositeOperation="source-in");d.drawImage(h,f,g,a,b,0,0,a, +b);c(e.toDataURL())};h.src=b});mxEvent.addListener(d,"keypress",function(a){13==a.keyCode&&q.click()});g=document.createElement("div");g.style.marginTop="20px";g.style.textAlign="right";a.editor.cancelFirst?(g.appendChild(f),g.appendChild(q)):(g.appendChild(q),g.appendChild(f));d.appendChild(g);this.container=d},EditGeometryDialog=function(a,b){var c=a.editor.graph,d=1==b.length?c.getCellGeometry(b[0]):null,f=document.createElement("div"),g=document.createElement("table"),l=document.createElement("tbody"), +e=document.createElement("tr"),h=document.createElement("td"),k=document.createElement("td");g.style.paddingLeft="6px";mxUtils.write(h,mxResources.get("left")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=d?d.x:"";this.init=function(){m.focus();m.select()};k.appendChild(m);e.appendChild(h);e.appendChild(k);l.appendChild(e);e=document.createElement("tr");h=document.createElement("td");k=document.createElement("td");mxUtils.write(h,mxResources.get("top")+ +":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.y:"";k.appendChild(n);e.appendChild(h);e.appendChild(k);l.appendChild(e);e=document.createElement("tr");h=document.createElement("td");k=document.createElement("td");mxUtils.write(h,mxResources.get("width")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=null!=d?d.width:"";k.appendChild(p);e.appendChild(h);e.appendChild(k);l.appendChild(e); +e=document.createElement("tr");h=document.createElement("td");k=document.createElement("td");mxUtils.write(h,mxResources.get("height")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=d?d.height:"";k.appendChild(t);e.appendChild(h);e.appendChild(k);l.appendChild(e);e=document.createElement("tr");h=document.createElement("td");k=document.createElement("td");mxUtils.write(h,mxResources.get("rotation")+":");var q=document.createElement("input"); +q.setAttribute("type","text");q.style.width="100px";q.value=1==b.length?mxUtils.getValue(c.getCellStyle(b[0]),mxConstants.STYLE_ROTATION,0):"";k.appendChild(q);e.appendChild(h);e.appendChild(k);l.appendChild(e);g.appendChild(l);f.appendChild(g);var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),w=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();c.getModel().beginUpdate();try{for(var e=0;ea.maxImageSize||f>a.maxImageSize){var E=Math.min(1,Math.min(a.maxImageSize/Math.max(1,l)),a.maxImageSize/Math.max(1,f));l*=E;f*=E}A>B?(B=Math.round(100* +g.style.marginTop="20px";g.style.textAlign="right";a.editor.cancelFirst?(g.appendChild(d),g.appendChild(w)):(g.appendChild(w),g.appendChild(d));f.appendChild(g);this.container=f},LibraryDialog=function(a,b,c,d,f,g){function l(a){for(a=document.elementFromPoint(a.clientX,a.clientY);null!=a&&a.parentNode!=t;)a=a.parentNode;var b=null;if(null!=a)for(var e=t.firstChild,b=0;null!=e&&e!=a;)e=e.nextSibling,b++;return b}function e(b,c,d,h,k,f,g,n,x){try{if(null==c||"image/"==c.substring(0,6))if(null==b&& +null!=g||null==w[b]){var p=function(){D.innerHTML="";D.style.cursor="pointer";D.style.whiteSpace="nowrap";D.style.textOverflow="ellipsis";mxUtils.write(D,null!=M.title&&0a.maxImageSize||f>a.maxImageSize){var E=Math.min(1,Math.min(a.maxImageSize/Math.max(1,k)),a.maxImageSize/Math.max(1,f));k*=E;f*=E}A>B?(B=Math.round(100* B/A),A=100):(A=Math.round(100*A/B),B=100);var G=document.createElement("div");G.setAttribute("draggable","true");G.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";G.style.position="relative";G.style.cursor="move";mxUtils.setPrefixedStyle(G.style,"transition","transform .1s ease-in-out");if(null!=b){var y=document.createElement("img");y.setAttribute("src",z.convert(b));y.style.width=A+"px";y.style.height=B+"px";y.style.margin="10px";y.style.paddingBottom=Math.floor((100-B)/2)+"px";y.style.paddingLeft= Math.floor((100-A)/2)+"px";G.appendChild(y)}else if(null!=g){var F=a.stringToCells(a.editor.graph.decompress(g.xml));0u?x-1:x,0,m.splice(u,1)[0]),t.insertBefore(t.children[u],t.children[x])):(m.push(m.splice(u,1)[0]),t.appendChild(t.children[u]));else if(0u?x-1:x,0,m.splice(u,1)[0]),t.insertBefore(t.children[u],t.children[x])):(m.push(m.splice(u,1)[0]),t.appendChild(t.children[u]));else if(0=c.status&&(e(c.responseText,d,h,l,f,g,m,"fixed",mxEvent.isAltDown(b)?null:m.substring(0,m.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight))})):(e(c,d,h,l,f,g,m,"fixed",mxEvent.isAltDown(b)?null:m.substring(0,m.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop= -t.scrollHeight)}};mxEvent.addListener(t,"dragover",h);mxEvent.addListener(t,"drop",l);mxEvent.addListener(q,"dragover",h);mxEvent.addListener(q,"drop",l);c.appendChild(t);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});b.setAttribute("id","btnCancel");b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);window.chrome&&chrome.app&&chrome.app.runtime?p.setAttribute("disabled","disabled"): -(n=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(m),e=p.value;/(\.xml)$/i.test(e)||(e+=".xml");a.isLocalFileSave()?a.saveLocalFile(b,e,"text/xml",null,null,!0):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(e)+"&format=xml&xml="+encodeURIComponent(b))).simulate(document,"_blank")}),n.setAttribute("id","btnDownload"),n.className="geBtn",d.appendChild(n));var y=document.createElement("input");y.setAttribute("multiple","multiple");y.setAttribute("type", -"file");null==document.documentMode&&(mxEvent.addListener(y,"change",function(b){C=!1;a.importFiles(y.files,0,0,a.maxImageSize,function(a,e,c,d,h,l,f,g,m){E(b)(a,e,c,d,h,l,f,g,m);y.value=""});t.scrollTop=t.scrollHeight}),n=mxUtils.button(mxResources.get("import"),function(){null!=v&&(v(),v=null);y.click()}),n.setAttribute("id","btnAddImage"),n.className="geBtn",d.appendChild(n));n=mxUtils.button(mxResources.get("addImageUrl"),function(){null!=v&&(v(),v=null);a.showImageDialog(mxResources.get("addImageUrl"), -"",function(a,b,c){C=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var d=a.indexOf(",");0=c.status&&(e(c.responseText,d,h,k,f,g,m,"fixed",mxEvent.isAltDown(b)?null:m.substring(0,m.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight))})):(e(c,d,h,k,f,g,m,"fixed",mxEvent.isAltDown(b)?null:m.substring(0,m.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop= +t.scrollHeight)}};mxEvent.addListener(t,"dragover",h);mxEvent.addListener(t,"drop",k);mxEvent.addListener(q,"dragover",h);mxEvent.addListener(q,"drop",k);c.appendChild(t);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});b.setAttribute("id","btnCancel");b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);window.chrome&&chrome.app&&chrome.app.runtime?p.setAttribute("disabled","disabled"): +(n=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(m),c=p.value;/(\.xml)$/i.test(c)||(c+=".xml");a.isLocalFileSave()?a.saveLocalFile(b,c,"text/xml",null,null,!0):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(c)+"&format=xml&xml="+encodeURIComponent(b))).simulate(document,"_blank")}),n.setAttribute("id","btnDownload"),n.className="geBtn",d.appendChild(n));var y=document.createElement("input");y.setAttribute("multiple","multiple");y.setAttribute("type", +"file");null==document.documentMode&&(mxEvent.addListener(y,"change",function(b){C=!1;a.importFiles(y.files,0,0,a.maxImageSize,function(a,c,e,d,h,k,f,g,m){E(b)(a,c,e,d,h,k,f,g,m);y.value=""});t.scrollTop=t.scrollHeight}),n=mxUtils.button(mxResources.get("import"),function(){null!=v&&(v(),v=null);y.click()}),n.setAttribute("id","btnAddImage"),n.className="geBtn",d.appendChild(n));n=mxUtils.button(mxResources.get("addImageUrl"),function(){null!=v&&(v(),v=null);a.showImageDialog(mxResources.get("addImageUrl"), +"",function(a,b,c){C=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var d=a.indexOf(",");0%position%
Email\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## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## 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. (These can be\n## used for connections and styles but will not be added as 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. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nEvan 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\nEdward 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\nRon 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\nTessa 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'; Editor.configure=function(a){if(null!=a){Menus.prototype.defaultFonts=a.defaultFonts||Menus.prototype.defaultFonts;ColorDialog.prototype.presetColors=a.presetColors||ColorDialog.prototype.presetColors;ColorDialog.prototype.defaultColors=a.defaultColors||ColorDialog.prototype.defaultColors;StyleFormatPanel.prototype.defaultColorSchemes=a.defaultColorSchemes||StyleFormatPanel.prototype.defaultColorSchemes;if(null!=a.css){var b=document.createElement("style");b.setAttribute("type","text/css");b.appendChild(document.createTextNode(a.css)); -var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(b,e)}null!=a.defaultLibraries&&(Sidebar.prototype.defaultEntries=a.defaultLibraries);null!=a.defaultCustomLibraries&&(Editor.defaultCustomLibraries=a.defaultCustomLibraries);null!=a.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=a.defaultVertexStyle);null!=a.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=a.defaultEdgeStyle);a.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=a.emptyDiagramXml);a.thumbWidth&& -(Sidebar.prototype.thumbWidth=a.thumbWidth);a.thumbHeight&&(Sidebar.prototype.thumbHeight=a.thumbHeight);a.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=a.emptyLibraryXml);a.sidebarWidth&&(EditorUi.prototype.hsplitPosition=a.sidebarWidth);a.fontCss&&(b=document.createElement("style"),b.setAttribute("type","text/css"),b.appendChild(document.createTextNode(a.fontCss)),e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(b,e),Editor.prototype.fontCss=a.fontCss);if(null!=a.plugins)for(App.initPluginCallback(), -b=0;bdocument.documentMode)?b.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+a.fill+"', EndColorStr='"+a.gradient+"', GradientType=0)":b.style.backgroundImage="linear-gradient("+a.fill+" 0px,"+a.gradient+" 100%)":b.style.backgroundColor=a.fill,b.style.border="1px solid "+a.stroke):(b.style.backgroundColor="#ffffff",b.style.border="1px solid #000000"); -d.appendChild(b)}d.innerHTML="";for(var e=0;e'),b.writeln(a.editor.fontCss),b.writeln(""))};if("undefined"!==typeof MathJax){var k=e.renderPage;e.renderPage=function(a,b,e,c,d,h){var l=k.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:l.className="geDisableMathJax";return l}}e.open(null,null,d,!0)}else{m=b.background;if(null== -m||""==m||m==mxConstants.NONE)m="#ffffff";e.backgroundColor=m;e.autoOrigin=n;e.appendGraph(b,g,l,f,d,!0)}return e}var c=parseInt(S.value)/100;isNaN(c)&&(c=1,S.value="100 %");var c=.75*c,h=k.value,l=p.value,f=!n.checked,m=null;f&&(f=h==g&&l==g);if(!f&&null!=a.pages&&a.pages.length){var w=0,f=a.pages.length-1;n.checked||(w=parseInt(h)-1,f=parseInt(l)-1);for(var u=w;u<=f;u++){var t=a.pages[u],h=t==a.currentPage?d:null;if(null==h){var h=a.createTemporaryGraph(d.getStylesheet()),l=!0,w=!1,q=null,x=null; -null==t.viewState&&null==t.mapping&&null==t.root&&a.updatePageRoot(t);null!=t.viewState?(l=t.viewState.pageVisible,w=t.viewState.mathEnabled,q=t.viewState.background,x=t.viewState.backgroundImage):null!=t.mapping&&null!=t.mapping.diagramMap&&(w="0"!=t.mapping.diagramMap.get("mathEnabled"),q=t.mapping.diagramMap.get("background"),x=t.mapping.diagramMap.get("backgroundImage"),x=null!=x&&0'),f.writeln("MathJax.Hub.Config({"),f.writeln('messageStyle: "none",'),f.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'), +var t=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,e,d,h,k,f,g,m){if(null!=c&&null==mxMarker.markers[c]){var n=this.getPackageForType(c);null!=n&&mxStencilRegistry.getStencil(n)}return t.apply(this,arguments)};PrintDialog.prototype.create=function(a,b){function c(){p.value=Math.max(1,Math.min(f,Math.max(parseInt(p.value),parseInt(l.value))));l.value=Math.max(1,Math.min(f,Math.min(parseInt(p.value),parseInt(l.value))))}function e(b){function c(b,c,d){var h=b.getGraphBounds(),k=0,f=0, +m=V.get(),g=1/b.pageScale,n=K.checked;if(n)var g=parseInt(O.value),w=parseInt(R.value),g=Math.min(m.height*w/(h.height/b.view.scale),m.width*g/(h.width/b.view.scale));else g=parseInt(H.value)/(100*b.pageScale),isNaN(g)&&(e=1/b.pageScale,H.value="100 %");m=mxRectangle.fromRectangle(m);m.width=Math.ceil(m.width*e);m.height=Math.ceil(m.height*e);g*=e;!n&&b.pageVisible?(h=b.getPageLayout(),k-=h.x*m.width,f-=h.y*m.height):n=!0;if(null==c){c=PrintDialog.createPrintPreview(b,g,m,0,k,f,n);c.pageSelector= +!1;c.mathEnabled=!1;b=a.getCurrentFile();null!=b&&(c.title=b.getTitle());var u=c.writeHead;c.writeHead=function(b){u.apply(this,arguments);null!=a.editor.fontCss&&(b.writeln('"))};if("undefined"!==typeof MathJax){var l=c.renderPage;c.renderPage=function(a,b,c,e,d,h){var k=l.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}c.open(null,null,d,!0)}else{m=b.background;if(null== +m||""==m||m==mxConstants.NONE)m="#ffffff";c.backgroundColor=m;c.autoOrigin=n;c.appendGraph(b,g,k,f,d,!0)}return c}var e=parseInt(S.value)/100;isNaN(e)&&(e=1,S.value="100 %");var e=.75*e,h=l.value,k=p.value,f=!n.checked,m=null;f&&(f=h==g&&k==g);if(!f&&null!=a.pages&&a.pages.length){var w=0,f=a.pages.length-1;n.checked||(w=parseInt(h)-1,f=parseInt(k)-1);for(var u=w;u<=f;u++){var t=a.pages[u],h=t==a.currentPage?d:null;if(null==h){var h=a.createTemporaryGraph(d.getStylesheet()),k=!0,w=!1,q=null,x=null; +null==t.viewState&&null==t.mapping&&null==t.root&&a.updatePageRoot(t);null!=t.viewState?(k=t.viewState.pageVisible,w=t.viewState.mathEnabled,q=t.viewState.background,x=t.viewState.backgroundImage):null!=t.mapping&&null!=t.mapping.diagramMap&&(w="0"!=t.mapping.diagramMap.get("mathEnabled"),q=t.mapping.diagramMap.get("background"),x=t.mapping.diagramMap.get("backgroundImage"),x=null!=x&&0'),f.writeln("MathJax.Hub.Config({"),f.writeln('messageStyle: "none",'),f.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'), f.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'),f.writeln("TeX: {"),f.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),f.writeln("},"),f.writeln("tex2jax: {"),f.writeln('\tignoreClass: "geDisableMathJax"'),f.writeln("},"),f.writeln("asciimath2jax: {"),f.writeln('\tignoreClass: "geDisableMathJax"'),f.writeln("}"),f.writeln("});"),b&&(f.writeln("MathJax.Hub.Queue(function () {"),f.writeln("window.print();"),f.writeln("});")),f.writeln("\x3c/script>"), -f.writeln('