diff --git a/ChangeLog b/ChangeLog index 1668ab9bd..96c2c5def 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +12-SEP-2023: 21.7.5 + +- Adds CSS styles for Latex SVG export [drawio-3839] +- Removes invalid flow plugin UI entry [drawio-3840] +- Fixes child edge bounding box offset [drawio-3844] +- Fixes saving changes in Notion plugin [drawio-3846] +- Shows shapes panel only after loading custom libs +- [conf cloud] Improved error message for 413 HTTP error (file too large) [DID-9113] +- Fixes contentLength header for UTF16 [drawio-3847] + 08-SEP-2023: 21.7.4 - AWS shapes update to Q2 2023 [drawio-3677] diff --git a/VERSION b/VERSION index d19e665e0..339beb472 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -21.7.4 \ No newline at end of file +21.7.5 \ No newline at end of file diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index 4297b7257..11554a0a9 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -146,7 +146,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url "se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1"); "embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,ADD_ATTR:["target","content"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources"; window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang; -window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"21.7.4",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), +window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"21.7.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor), IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS|| @@ -1376,10 +1376,10 @@ p,!0)){for(;null!=p&&!d.get(p);)p=this.model.getParent(p);null==p&&(f.setTermina mxGraph.prototype.getCurrentRoot=function(){return this.view.currentRoot};mxGraph.prototype.getTranslateForRoot=function(a){return null};mxGraph.prototype.isPort=function(a){return!1};mxGraph.prototype.getTerminalForPort=function(a,b){return this.model.getParent(a)};mxGraph.prototype.getChildOffsetForCell=function(a){return null};mxGraph.prototype.enterGroup=function(a){a=a||this.getSelectionCell();null!=a&&this.isValidRoot(a)&&(this.view.setCurrentRoot(a),this.clearSelection())}; mxGraph.prototype.exitGroup=function(){var a=this.model.getRoot(),b=this.getCurrentRoot();if(null!=b){for(var c=this.model.getParent(b);c!=a&&!this.isValidRoot(c)&&this.model.getParent(c)!=a;)c=this.model.getParent(c);c==a||this.model.getParent(c)==a?this.view.setCurrentRoot(null):this.view.setCurrentRoot(c);null!=this.view.getState(b)&&this.setSelectionCell(b)}};mxGraph.prototype.home=function(){var a=this.getCurrentRoot();null!=a&&(this.view.setCurrentRoot(null),null!=this.view.getState(a)&&this.setSelectionCell(a))}; mxGraph.prototype.isValidRoot=function(a){return null!=a};mxGraph.prototype.getGraphBounds=function(){return this.view.getGraphBounds()};mxGraph.prototype.getCellBounds=function(a,b,c){var d=[a];b&&(d=d.concat(this.model.getEdges(a)));d=this.view.getBounds(d);if(c){c=this.model.getChildCount(a);for(var e=0;ethis.maxTooltipWidth||f>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/e,this.maxTooltipHeight/f))/100:1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d= -mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;m=mxUtils.getCurrentStyle(this.tooltip);this.graph2.shapeBackgroundColor=m.backgroundColor;b=this.graph2.cloneCells(b);this.editorUi.insertHandler(b,null,this.graph2.model,r?null:this.editorUi.editor.graph.defaultVertexStyle,r?null:this.editorUi.editor.graph.defaultEdgeStyle,r,!0);this.graph2.addCells(b);mxClient.NO_FO=d;r=this.graph2.getGraphBounds();n&&0e||r.height>f)?(e=Math.round(100*Math.min(e/r.width,f/ -r.height))/100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/r.width,this.maxTooltipHeight/r.height))/100),r=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+e+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",r.width*=e,r.height*=e)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="");e=r.width+2*this.tooltipBorder+4;f=r.height+2*this.tooltipBorder; +mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;m=mxUtils.getCurrentStyle(this.tooltip);this.graph2.shapeBackgroundColor=m.backgroundColor;null!=b&&(b=this.graph2.cloneCells(b),this.editorUi.insertHandler(b,null,this.graph2.model,r?null:this.editorUi.editor.graph.defaultVertexStyle,r?null:this.editorUi.editor.graph.defaultEdgeStyle,r,!0),this.graph2.addCells(b));mxClient.NO_FO=d;r=this.graph2.getGraphBounds();n&&0e||r.height>f)?(e=Math.round(100*Math.min(e/ +r.width,f/r.height))/100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/r.width,this.maxTooltipHeight/r.height))/100),r=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+e+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",r.width*=e,r.height*=e)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="");e=r.width+2*this.tooltipBorder+4;f=r.height+2*this.tooltipBorder; this.tooltip.style.overflow="visible";this.tooltip.style.width=e+"px";n=e;this.tooltipTitles&&null!=g&&0e&&(this.tooltip.style.width=n+"px");this.tooltip.style.height=f+"px";g=-Math.round(r.x- this.tooltipBorder)+(n>e?(n-e)/2:0);e=-Math.round(r.y-this.tooltipBorder);h=null!=h?h:this.getTooltipOffset(a,r);a=h.x;h=h.y;mxClient.IS_SVG?0!=g||0!=e?this.graph2.view.canvas.setAttribute("transform","translate("+g+","+e+")"):this.graph2.view.canvas.removeAttribute("transform"):(this.graph2.view.drawPane.style.left=g+"px",this.graph2.view.drawPane.style.top=e+"px");this.tooltip.style.position="absolute";this.tooltip.style.left=a+"px";this.tooltip.style.top=h+"px";mxUtils.fit(this.tooltip);this.lastCreated= @@ -11133,32 +11133,32 @@ y.appendChild(C),y.appendChild(G));E=document.createElement("option");E.setAttri " ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==f&&(y.appendChild(E),y.appendChild(B),y.appendChild(C));var H=d();u.value=H;e.appendChild(u);this.init=function(){u.focus()};Graph.fileSupport&&(u.addEventListener("dragover",function(c){c.stopPropagation();c.preventDefault()},!1),u.addEventListener("drop",function(c){c.stopPropagation();c.preventDefault();if(0";if(La||"undefined"===typeof mxMermaidToDrawio)da=ba=wa;wa=m.cloneNode(!0);pa.appendChild(wa);Ma=function(Pa){L=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Oa=function(Pa){L||A(Ta,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),Sa,Da)};mxEvent.addGestureListeners(Sa,Ma,null,Oa);mxEvent.addGestureListeners(wa,Ma,null,Oa)},function(wa){b.handleError(wa)})});Ka.setAttribute("disabled","disabled");Ka.className="geBtn gePrimaryBtn";ra=function(){window.setTimeout(function(){""!= -oa.value?Ka.removeAttribute("disabled"):Ka.setAttribute("disabled","disabled")},0)};ma=urlParams["smart-template"];null!=ma&&"1"!=ma&&(oa.value=decodeURIComponent(ma),ra(),"1"==urlParams["smart-template-generate"]&&window.setTimeout(function(){Ka.click()},0));mxEvent.addListener(oa,"change",ra);mxEvent.addListener(oa,"keydown",ra);mxEvent.addListener(oa,"cut",ra);mxEvent.addListener(oa,"paste",ra);mxEvent.addListener(oa,"keydown",function(Ja){13==Ja.keyCode&&Ka.click()});ra=document.createElement("div"); +oa.value?Ka.removeAttribute("disabled"):Ka.setAttribute("disabled","disabled")},0)};na=urlParams["smart-template"];null!=na&&"1"!=na&&(oa.value=decodeURIComponent(na),ra(),"1"==urlParams["smart-template-generate"]&&window.setTimeout(function(){Ka.click()},0));mxEvent.addListener(oa,"change",ra);mxEvent.addListener(oa,"keydown",ra);mxEvent.addListener(oa,"cut",ra);mxEvent.addListener(oa,"paste",ra);mxEvent.addListener(oa,"keydown",function(Ja){13==Ja.keyCode&&Ka.click()});ra=document.createElement("div"); ra.style.height="40px";ra.style.marginTop="4px";ra.style.marginBottom="4px";ra.style.whiteSpace="nowrap";ra.style.overflowX="auto";ra.style.overflowY="hidden";ra.appendChild(ja);ra.appendChild(Ka);ea.appendChild(ra);ea.appendChild(pa);return ea}function J(){if(ha&&null!=c)f||b.hideDialog(),c(ha,Aa,R.value);else if(k)f||b.hideDialog(),k(ba,R.value,za,aa);else{var ea=R.value;null!=ea&&0=Wa.getStatus()&&(Ma=Wa.getText());Ya(Ma,Oa)}))):Ya(Ma,Oa)}function Da(Na,Ya){if(null==ea||x||b.sidebar.currentElt==wa)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=I){var Wa=""+Graph.compress('')+"";A(Wa,mxEvent.getClientX(Na),mxEvent.getClientY(Na),pa,ea)}else b.sidebar.currentElt=wa,x=!0,La(ea,function(ab){x&&b.sidebar.currentElt==wa&&A(ab,mxEvent.getClientX(Na),mxEvent.getClientY(Na),wa,Ya);x=!1})}var wa=document.createElement("div");wa.className="geTemplate geAdaptiveAsset";wa.style.position="relative";wa.style.height=Fa+"px";wa.style.width=qa+"px";wa.style.border="1px solid transparent"; -var Ma=null,Oa=ea;null!=pa?wa.setAttribute("title",mxResources.get(pa,null,pa)):null!=ra&&0=ia.scrollHeight&&(z(),mxEvent.consume(Da))}));if(0=ia.scrollHeight&&(z(),mxEvent.consume(Da))}));if(0(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);f=null!=f?f:!0;d=null!=d?d:!1;u=null!=u?u:Editor.isDarkMode()?Editor.darkColor:"#ebf2f9";y=null!=y?y:Editor.isDarkMode()?"#fff":"#e6eff8";E=null!=E?E:Editor.isDarkMode()?"1px dashed #00a8ff":"1px solid #ccd9ea";C=null!=C?C:EditorUi.templateFile;var S=document.createElement("div"); S.style.userSelect="none";S.style.height="100%";var W=document.createElement("div");W.style.whiteSpace="nowrap";W.style.height="46px";f&&S.appendChild(W);var O=document.createElement("img");O.setAttribute("border","0");O.setAttribute("align","absmiddle");O.style.width="40px";O.style.height="40px";O.style.marginRight="10px";O.style.paddingBottom="4px";O.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE? IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";e||M||!f||W.appendChild(O);f&&mxUtils.write(W,(M?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");O=".drawio"; @@ -11166,18 +11166,18 @@ b.mode==App.MODE_GOOGLE&&null!=b.drive?O=b.drive.extension:b.mode==App.MODE_DROP M?"144px":"244px";this.init=function(){f&&Editor.selectFilename(R);null!=ia.parentNode&&null!=ia.parentNode.parentNode&&mxEvent.addGestureListeners(ia.parentNode.parentNode,mxUtils.bind(this,function(ea){b.sidebar.hideTooltip()}),null,null)};f&&(W.appendChild(R),t?R.style.width=e||M?"350px":"450px":(null!=b.editor.diagramFileTypes&&(t=FilenameDialog.createFileTypes(b,R,b.editor.diagramFileTypes),t.style.marginLeft="6px",t.style.width=e||M?"80px":"180px",W.appendChild(t)),null!=b.editor.fileExtensions&& (M=FilenameDialog.createTypeHint(b,R,b.editor.fileExtensions),M.style.marginTop="12px",W.appendChild(M))));W=!1;var p=0,v=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),K=mxUtils.button(n||mxResources.get("create"),function(){K.setAttribute("disabled","disabled");J();K.removeAttribute("disabled")});K.className="geBtn gePrimaryBtn";var m=document.createElement("img");m.setAttribute("src",Sidebar.prototype.searchImage); m.setAttribute("title",mxResources.get("preview"));m.className="geActiveButton";m.style.position="absolute";m.style.cursor="default";m.style.padding="8px";m.style.right="0px";m.style.top="0px";var x=!1,I=null,L=!1;if(G||H){var N=[],T=null,Q=null,V=null,X=function(ea){K.setAttribute("disabled","disabled");for(var oa=0;oa=Ja.getStatus()&&(ma=Ja.getText());Ka(ma)}))):Ka(ma)}function ja(ua,Ka,Ja){if(null!=ua&& +E;this.okButton=d;this.container=H},TemplatesDialog=function(b,e,f,k,d,l,u,y,E,B,C,G,H,c,g){function n(ka){ta.innerText=ka;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function q(){null!=x&&(x.style.fontWeight="normal",x.style.textDecoration="none",I=x,x=null)}function t(ka,ea,oa,pa,ra,ja,na){if(-1=Ja.getStatus()&&(na=Ja.getText());Ka(na)}))):Ka(na)}function ja(ua,Ka,Ja){if(null!=ua&& mxUtils.isAncestorNode(document.body,ea)&&(ua=mxUtils.parseXml(ua),ua=Editor.extractGraphModel(ua.documentElement,!0),null!=ua)){"mxfile"==ua.nodeName&&(ua=Editor.parseDiagramNode(ua.getElementsByTagName("diagram")[0]));var Ba=new mxCodec(ua.ownerDocument),La=new mxGraphModel;Ba.decode(ua,La);ua=La.root.getChildAt(0).children||[];b.sidebar.createTooltip(ea,ua,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight|| -document.body.clientHeight)-80,800),null!=ka.title?mxResources.get(ka.title,null,ka.title):null,!0,new mxPoint(Ka,Ja),!0,null,!0);var Da=document.createElement("div");Da.className="geTempDlgDialogMask";v.appendChild(Da);var wa=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Da&&(v.removeChild(Da),Da=null,wa.apply(this,arguments),b.sidebar.hideTooltip=wa)};mxEvent.addListener(Da,"click",function(){b.sidebar.hideTooltip()})}}var ma=null;if(qa||b.sidebar.currentElt==ea)b.sidebar.hideTooltip(); +document.body.clientHeight)-80,800),null!=ka.title?mxResources.get(ka.title,null,ka.title):null,!0,new mxPoint(Ka,Ja),!0,null,!0);var Da=document.createElement("div");Da.className="geTempDlgDialogMask";v.appendChild(Da);var wa=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Da&&(v.removeChild(Da),Da=null,wa.apply(this,arguments),b.sidebar.hideTooltip=wa)};mxEvent.addListener(Da,"click",function(){b.sidebar.hideTooltip()})}}var na=null;if(qa||b.sidebar.currentElt==ea)b.sidebar.hideTooltip(); else{var xa=function(ua){qa&&b.sidebar.currentElt==ea&&ja(ua,mxEvent.getClientX(pa),mxEvent.getClientY(pa));qa=!1;oa.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=ea;qa=!0;oa.src="/images/aui-wait.gif";ka.isExt?E(ka,xa,function(){n(mxResources.get("cantLoadPrev"));qa=!1;oa.src="/images/icon-search.svg"}):ra(ka.url,xa)}}function A(ka,ea,oa){if(null!=L){for(var pa=L.className.split(" "),ra=0;ra=ua.getStatus()?pa(ua.getText(),xa):ra()})):pa(b.emptyDiagramXml,xa)},pa=function(xa,ua){g||b.hideDialog(!0);e(xa,ua,ma,ea)},ra=function(){n(mxResources.get("cannotLoad")); -ja()},ja=function(){N=ma;la.className="geTempDlgCreateBtn";ea&&(ya.className="geTempDlgOpenBtn")},ma=N;N=null;"boolean"!==typeof ea&&(ea=ma.isExternal&&G);1==ka?B(ma.url,ma):ea?(ya.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",oa()):(la.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ka=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ka=new FilenameDialog(b,b.defaultFilename+".drawio", -mxResources.get("ok"),oa,ka,function(xa){var ua=null!=xa&&0ua?mxUtils.htmlEntities(xa.substring(0,ua))+"…":mxUtils.htmlEntities(xa);if(oa){var Da= +pa.join(" ")}null!=ka?(L=ka,L.className+=" "+ea,N=oa,ma.className="geTempDlgCreateBtn"):(N=L=null,ma.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function D(ka,ea){if(null!=N){var oa=function(xa){na.isExternal?E(na,function(ua){pa(ua,xa)},ra):na.url?mxUtils.get(TEMPLATE_PATH+"/"+na.url,mxUtils.bind(this,function(ua){200<=ua.getStatus()&&299>=ua.getStatus()?pa(ua.getText(),xa):ra()})):pa(b.emptyDiagramXml,xa)},pa=function(xa,ua){g||b.hideDialog(!0);e(xa,ua,na,ea)},ra=function(){n(mxResources.get("cannotLoad")); +ja()},ja=function(){N=na;ma.className="geTempDlgCreateBtn";ea&&(ya.className="geTempDlgOpenBtn")},na=N;N=null;"boolean"!==typeof ea&&(ea=na.isExternal&&G);1==ka?B(na.url,na):ea?(ya.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",oa()):(ma.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy",ka=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),ka=new FilenameDialog(b,b.defaultFilename+".drawio", +mxResources.get("ok"),oa,ka,function(xa){var ua=null!=xa&&0ua?mxUtils.htmlEntities(xa.substring(0,ua))+"…":mxUtils.htmlEntities(xa);if(oa){var Da= document.createElement("tr");Ja=document.createElement("td");var wa=document.createElement("img");wa.src="/images/icon-search.svg";wa.className="geTempDlgDiagramListPreviewBtn";wa.setAttribute("title",mxResources.get("preview"));ra||Ja.appendChild(wa);Ka=document.createElement("span");Ka.className="geTempDlgDiagramTitle";Ka.innerHTML=xa;Ja.appendChild(Ka);Da.appendChild(Ja);Ja=document.createElement("td");Ja.innerText=Ba;Da.appendChild(Ja);Ja=document.createElement("td");Ja.innerText=La;Da.appendChild(Ja); -ja.appendChild(Da);null==L&&(J(ea),A(Da,"geTempDlgDiagramsListGridActive",ka[ma]));(function(Sa,Ta,Pa){mxEvent.addListener(Da,"click",function(){L!=Ta&&(J(ea),A(Ta,"geTempDlgDiagramsListGridActive",Sa))});mxEvent.addListener(Da,"dblclick",D);mxEvent.addListener(wa,"click",function(Na){z(Sa,Ta,Pa,Na)})})(ka[ma],Da,wa)}else{var Ma=document.createElement("div");Ma.className="geTempDlgDiagramTile";Ma.setAttribute("title",Ka);null==L&&(J(ea),A(Ma,"geTempDlgDiagramTileActive",ka[ma]));Ba=document.createElement("div"); +ja.appendChild(Da);null==L&&(J(ea),A(Da,"geTempDlgDiagramsListGridActive",ka[na]));(function(Sa,Ta,Pa){mxEvent.addListener(Da,"click",function(){L!=Ta&&(J(ea),A(Ta,"geTempDlgDiagramsListGridActive",Sa))});mxEvent.addListener(Da,"dblclick",D);mxEvent.addListener(wa,"click",function(Na){z(Sa,Ta,Pa,Na)})})(ka[na],Da,wa)}else{var Ma=document.createElement("div");Ma.className="geTempDlgDiagramTile";Ma.setAttribute("title",Ka);null==L&&(J(ea),A(Ma,"geTempDlgDiagramTileActive",ka[na]));Ba=document.createElement("div"); Ba.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading";var Oa=document.createElement("img");Oa.style.display="none";(function(Sa,Ta,Pa){Oa.onload=function(){Ta.className="geTempDlgDiagramTileImg";Sa.style.display=""};Oa.onerror=function(){this.src!=Pa?this.src=Pa:Ta.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgError"}})(Oa,Ba,Ja?Ja.replace(".drawio.xml","").replace(".drawio","").replace(".xml",""):"");Oa.src=Ja;Ba.appendChild(Oa);Ma.appendChild(Ba);Ba=document.createElement("div"); -Ba.className="geTempDlgDiagramTileLbl";Ba.innerHTML=null!=xa?xa:"";Ma.appendChild(Ba);wa=document.createElement("img");wa.src="/images/icon-search.svg";wa.className="geTempDlgDiagramPreviewBtn";wa.setAttribute("title",mxResources.get("preview"));ra||Ma.appendChild(wa);(function(Sa,Ta,Pa){mxEvent.addListener(Ma,"click",function(){L!=Ta&&(J(ea),A(Ta,"geTempDlgDiagramTileActive",Sa))});mxEvent.addListener(Ma,"dblclick",D);mxEvent.addListener(wa,"click",function(Na){z(Sa,Ta,Pa,Na)})})(ka[ma],Ma,wa);ca.appendChild(Ma)}}for(var Xa in pa)ka= -pa[Xa],0oa?oa:ka.length;for(var pa=0;paoa?oa:ka.length;for(var pa=0;pa
'+mxResources.get("newDiagram")+'
'+ mxResources.get("showMore")+'
'+mxResources.get("myDiagrams")+'
'+ mxResources.get("allDiagrams")+'

'+ (H?''+mxResources.get("linkToDiagramHint")+'":"")+(G?'
'+mxResources.get("open")+"
":"")+'
'+mxResources.get("create")+'
'+mxResources.get("cancel")+"
",v=document.createElement("div");v.innerHTML=p;v.className= "geTemplateDlg";this.container=v;k=null!=k?k:TEMPLATE_PATH+"/index.xml";d=null!=d?d:NEW_DIAGRAM_CATS_PATH+"/index.xml";var K=!1,m=!1,x=null,I=null,L=null,N=null,T=!1,Q=!0,V=!1,X=[],Z=null,Y,aa,fa=!1,ba=v.querySelector(".geTempDlgShowAllBtn"),ca=v.querySelector(".geTempDlgDiagramsTiles"),ha=v.querySelector(".geTempDlgDiagramsListTitle"),za=v.querySelector(".geTempDlgDiagramsListBtns"),Aa=v.querySelector(".geTempDlgContent"),da=v.querySelector(".geTempDlgDiagramsList"),ia=v.querySelector(".geTempDlgNewDiagramCat"), -na=v.querySelector(".geTempDlgNewDiagramCatList"),la=v.querySelector(".geTempDlgCreateBtn"),ya=v.querySelector(".geTempDlgOpenBtn"),Ca=v.querySelector(".geTempDlgSearchBox"),ta=v.querySelector(".geTempDlgErrMsg"),Fa=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"50px",zIndex:2E9});mxEvent.addListener(v.querySelector(".geTempDlgBack"),"click",function(){q();fa=!1;v.querySelector(".geTemplatesList").style.display="none";Aa.style.width= +la=v.querySelector(".geTempDlgNewDiagramCatList"),ma=v.querySelector(".geTempDlgCreateBtn"),ya=v.querySelector(".geTempDlgOpenBtn"),Ca=v.querySelector(".geTempDlgSearchBox"),ta=v.querySelector(".geTempDlgErrMsg"),Fa=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"50px",zIndex:2E9});mxEvent.addListener(v.querySelector(".geTempDlgBack"),"click",function(){q();fa=!1;v.querySelector(".geTemplatesList").style.display="none";Aa.style.width= "100%";ia.style.display="";da.style.minHeight="calc(100% - 280px)";Ca.style.display=y?"":"none";Ca.value="";Y=null;S(Q)});mxEvent.addListener(v.querySelector(".geTempDlgRadioBtn[data-id=allDiagramsBtn]"),"click",function(){t(this,"geTempDlgAllDiagramsBtnImg","all-diagrams","myDiagramsBtn","geTempDlgMyDiagramsBtnImg","my-diagrams",!0)&&(Q=!0,null==Y?S(Q):O(Y))});mxEvent.addListener(v.querySelector(".geTempDlgRadioBtn[data-id=myDiagramsBtn]"),"click",function(){t(this,"geTempDlgMyDiagramsBtnImg","my-diagrams", "allDiagramsBtn","geTempDlgAllDiagramsBtnImg","all-diagrams",!0)&&(Q=!1,null==Y?S(Q):O(Y))});mxEvent.addListener(v.querySelector(".geTempDlgRadioBtn[data-id=listBtn]"),"click",function(){t(this,"geTempDlgListBtnImg","list","tilesBtn","geTempDlgTilesBtnImg","tiles",!1)&&(V=!0,F(X,!1,V,Z))});mxEvent.addListener(v.querySelector(".geTempDlgRadioBtn[data-id=tilesBtn]"),"click",function(){t(this,"geTempDlgTilesBtnImg","tiles","listBtn","geTempDlgListBtnImg","list",!1)&&(V=!1,F(X,!1,V,Z))});var qa=!1;mxEvent.addListener(ba, -"click",function(){T?(ia.style.height="280px",na.style.height="190px",ba.innerText=mxResources.get("showMore"),U(Ha)):(ia.style.height="440px",na.style.height="355px",ba.innerText=mxResources.get("showLess"),U(Ha,!0));T=!T});var sa=!1,va=!1,Ga={},Ea={},Qa={},Ha=[],Ra=1,Ia=0;null!=C?C(function(ka,ea){Qa=ka;Ia=ea;M()},M):M();mxUtils.get(d,function(ka){if(!va){va=!0;for(ka=ka.getXml().documentElement.firstChild;null!=ka;)"undefined"!==typeof ka.getAttribute&&null!=ka.getAttribute("title")&&Ha.push({img:ka.getAttribute("img"), -libs:ka.getAttribute("libs"),clibs:ka.getAttribute("clibs"),title:ka.getAttribute("title")}),ka=ka.nextSibling;U(Ha)}});var Va=function(ka,ea,oa){za.style.display="";Fa.stop();K=!1;if(m)m=!1;else if(ea)ca.innerText=ea;else{oa=oa||{};ea=0;for(var pa in oa)ea+=oa[pa].length;0==ka.length&&0==ea?ca.innerText=mxResources.get("noDiagrams"):F(ka,!1,V,0==ea?null:oa)}};S(Q);var Ua=null;mxEvent.addListener(Ca,"keyup",R);mxEvent.addListener(Ca,"search",R);mxEvent.addListener(Ca,"input",R);mxEvent.addListener(la, +"click",function(){T?(ia.style.height="280px",la.style.height="190px",ba.innerText=mxResources.get("showMore"),U(Ha)):(ia.style.height="440px",la.style.height="355px",ba.innerText=mxResources.get("showLess"),U(Ha,!0));T=!T});var sa=!1,va=!1,Ga={},Ea={},Qa={},Ha=[],Ra=1,Ia=0;null!=C?C(function(ka,ea){Qa=ka;Ia=ea;M()},M):M();mxUtils.get(d,function(ka){if(!va){va=!0;for(ka=ka.getXml().documentElement.firstChild;null!=ka;)"undefined"!==typeof ka.getAttribute&&null!=ka.getAttribute("title")&&Ha.push({img:ka.getAttribute("img"), +libs:ka.getAttribute("libs"),clibs:ka.getAttribute("clibs"),title:ka.getAttribute("title")}),ka=ka.nextSibling;U(Ha)}});var Va=function(ka,ea,oa){za.style.display="";Fa.stop();K=!1;if(m)m=!1;else if(ea)ca.innerText=ea;else{oa=oa||{};ea=0;for(var pa in oa)ea+=oa[pa].length;0==ka.length&&0==ea?ca.innerText=mxResources.get("noDiagrams"):F(ka,!1,V,0==ea?null:oa)}};S(Q);var Ua=null;mxEvent.addListener(Ca,"keyup",R);mxEvent.addListener(Ca,"search",R);mxEvent.addListener(Ca,"input",R);mxEvent.addListener(ma, "click",function(ka){D(!1,!1)});G&&mxEvent.addListener(ya,"click",function(ka){D(!1,!0)});H&&mxEvent.addListener(v.querySelector(".geTempDlgLinkToDiagramBtn"),"click",function(ka){D(!0)});mxEvent.addListener(v.querySelector(".geTempDlgCancelBtn"),"click",function(){null!=f&&f();g||b.hideDialog(!0)})};TemplatesDialog.tagsList={}; var BtnDialog=function(b,e,f,k){var d=document.createElement("div");d.style.textAlign="center";var l=document.createElement("p");l.style.fontSize="16pt";l.style.padding="0px";l.style.margin="0px";l.style.color="gray";mxUtils.write(l,mxResources.get("done"));var u="Unknown",y=document.createElement("img");y.setAttribute("border","0");y.setAttribute("align","absmiddle");y.style.marginRight="10px";e==b.drive?(u=mxResources.get("googleDrive"),y.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox? (u=mxResources.get("dropbox"),y.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(u=mxResources.get("oneDrive"),y.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(u=mxResources.get("github"),y.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(u=mxResources.get("gitlab"),y.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.trello&&(u=mxResources.get("trello"),y.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[u],"You are now authorized in {1}")); @@ -11606,10 +11606,10 @@ null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,fun function(){0==L&&this.embedCssFonts(I.join(""),m)}),T=0;TL.indexOf("mxPageSelector")&&0d;d++)for(var l=d,u=0;8>u;u++)l=1==(l&1)?3988292384^l>>>1:l>>>1,Editor.crcTable[d]=l;Editor.updateCRC=function(m,x,I,L){for(var N=0;N>>8;return m};Editor.crc32=function(m){for(var x=-1,I=0;I>>8^Editor.crcTable[(x^m.charCodeAt(I))&255];return(x^-1)>>>0};Editor.writeGraphModelToPng=function(m,x,I,L,N){function T(Y,aa){var fa= X;X+=aa;return Y.substring(fa,X)}function Q(Y){Y=T(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function V(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var X=0;if(T(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=N&&N();else if(T(m,4),"IHDR"!=T(m,4))null!=N&&N();else{T(m,17);N=m.substring(0,X);do{var Z=Q(m);if("IDAT"==T(m,4)){N= m.substring(0,X-8);"pHYs"==x&&"dpi"==I?(I=Math.round(L/.0254),I=V(I)+V(I)+String.fromCharCode(1)):I=I+String.fromCharCode(0)+("zTXt"==x?String.fromCharCode(0):"")+L;L=4294967295;L=Editor.updateCRC(L,x,0,4);L=Editor.updateCRC(L,I,0,I.length);N+=V(I.length)+x+I+V(L^4294967295);N+=m.substring(X-8,m.length);break}N+=m.substring(X-8,X-4+Z);T(m,Z);T(m,4)}while(Z);return"data:image/png;base64,"+(window.btoa?btoa(N):Base64.encode(N,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats"; @@ -11657,19 +11657,19 @@ mxUtils.bind(Y,function(){function Ua(){var ea=ka.value;ea=0==ea.length&&"string (ka.type="number",ka.step="int"==Ha?"1":"any",null!=va.min&&(ka.min=parseFloat(va.min)),null!=va.max&&(ka.max=parseFloat(va.max)));m.appendChild(ka);mxEvent.addListener(ka,"keypress",function(ea){13==ea.keyCode&&Ua()});ka.focus();mxEvent.addListener(ka,"blur",function(){Ua()})})));va.isDeletable&&(Ea=mxUtils.button("-",mxUtils.bind(Y,function(Ua){L(qa,"",va,va.index);mxEvent.consume(Ua)})),Ea.style.height="16px",Ea.style.width="25px",Ea.style.float="right",Ea.className="geColorBtn",Ia.appendChild(Ea)); Ra.appendChild(Ia);return Ra}var Y=this,aa=this.editorUi.editor.graph,fa=[];m.style.position="relative";m.style.padding="0";var ba=document.createElement("table");ba.className="geProperties";ba.style.whiteSpace="nowrap";ba.style.width="100%";var ca=document.createElement("tr");ca.className="gePropHeader";var ha=document.createElement("th");ha.className="gePropHeaderCell";var za=document.createElement("img");za.src=Sidebar.prototype.expandedImage;za.style.verticalAlign="middle";ha.appendChild(za); mxUtils.write(ha,mxResources.get("property"));ca.style.cursor="pointer";var Aa=function(){var qa=ba.querySelectorAll(".gePropNonHeaderRow");if(Y.editorUi.propertiesCollapsed){za.src=Sidebar.prototype.collapsedImage;var sa="none";for(var va=m.childNodes.length-1;0<=va;va--)try{var Ga=m.childNodes[va],Ea=Ga.nodeName.toUpperCase();"INPUT"!=Ea&&"SELECT"!=Ea||m.removeChild(Ga)}catch(Qa){}}else za.src=Sidebar.prototype.expandedImage,sa="";for(va=0;va=this.defaultColorSchemes.length?"24px":"30px";da.style.margin="0px 6px 6px 0px";if(null!=Aa){var ia=Editor.isDarkMode()?"2px solid":"1px solid";null!=Aa.border&&(ia=Aa.border);null!=Aa.gradient?mxClient.IS_IE&&10>document.documentMode?da.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+Aa.fill+"', EndColorStr='"+ Aa.gradient+"', GradientType=0)":da.style.backgroundImage="linear-gradient("+Aa.fill+" 0px,"+Aa.gradient+" 100%)":Aa.fill==mxConstants.NONE?da.style.background="url('"+Dialog.prototype.noColorImage+"')":da.style.backgroundColor=""==Aa.fill?mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):Aa.fill||mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");da.style.border=Aa.stroke== -mxConstants.NONE?ia+" transparent":""==Aa.stroke?ia+" "+mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):ia+" "+(Aa.stroke||mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor));null!=Aa.title&&da.setAttribute("title",Aa.title)}else{ia=mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff");var na=mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR, -"#000000");da.style.backgroundColor=ia;da.style.border="1px solid "+na}da.style.borderRadius="0";N.appendChild(da)});N.innerText="";for(var za=0;za=this.defaultColorSchemes.length?28:8;var fa=document.createElement("div");fa.style.cssText="position:absolute;left:10px;top:8px;bottom:"+X+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);"; +mxConstants.NONE?ia+" transparent":""==Aa.stroke?ia+" "+mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):ia+" "+(Aa.stroke||mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor));null!=Aa.title&&da.setAttribute("title",Aa.title)}else{ia=mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff");var la=mxUtils.getValue(L.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR, +"#000000");da.style.backgroundColor=ia;da.style.border="1px solid "+la}da.style.borderRadius="0";N.appendChild(da)});N.innerText="";for(var za=0;za=this.defaultColorSchemes.length?28:8;var fa=document.createElement("div");fa.style.cssText="position:absolute;left:10px;top:8px;bottom:"+X+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);"; mxEvent.addListener(fa,"click",mxUtils.bind(this,function(){Y(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var ba=document.createElement("div");ba.style.cssText="position:absolute;left:202px;top:8px;bottom:"+X+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);"; 1=this.defaultColorSchemes.length&&m.appendChild(Q)}return m}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'}; Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(m){return m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(m){return Graph.isGoogleFontUrl(m)};Graph.createFontElement=function(m,x){var I=Graph.fontMapping[x];null==I&&Graph.isCssFontUrl(x)?(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("type","text/css"),m.setAttribute("charset","UTF-8"),m.setAttribute("href",x)):(null==I&&(I='@font-face {\nfont-family: "'+ @@ -11680,13 +11680,13 @@ Graph.recentCustomFonts[L]=N,x=document.getElementsByTagName("head")[0],null!=I& m);mxEvent.addListener(this.container,"mousemove",m);mxEvent.addListener(this.container,"mouseleave",function(N){x=null});this.isMouseInsertPoint=function(){return null!=x};var I=this.getInsertPoint;this.getInsertPoint=function(){return null!=x?this.getPointForEvent(x):I.apply(this,arguments)};var L=this.layoutManager.getLayout;this.layoutManager.getLayout=function(N){var T=this.graph.getCellStyle(N);if(null!=T&&"rack"==T.childLayout){var Q=new mxStackLayout(this.graph,!1);Q.gridSize=null!=T.rackUnitSize? parseFloat(T.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;Q.marginLeft=T.marginLeft||0;Q.marginRight=T.marginRight||0;Q.marginTop=T.marginTop||0;Q.marginBottom=T.marginBottom||0;Q.allowGaps=T.allowGaps||0;Q.horizontal="1"==mxUtils.getValue(T,"horizontalRack","0");Q.resizeParent=!1;Q.fill=!0;return Q}return L.apply(this,arguments)};this.updateGlobalUrlVariables()};var n=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(m,x){return Graph.processFontStyle(n.apply(this, arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(m,x,I,L,N,T,Q,V,X,Z,Y){q.apply(this,arguments);Graph.processFontAttributes(Y)};var t=mxText.prototype.redraw;mxText.prototype.redraw=function(){t.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(m,x,I,L){function N(){for(var ha=V.getSelectionCells(),za=[],Aa=0;AamxUtils.indexOf(V.hiddenTags,na),Ca=document.createElement("tr"),ta=document.createElement("td");ta.style.align="center";ta.style.width="16px";var Fa=document.createElement("img");Fa.setAttribute("src",ya?Editor.visibleImage:Editor.hiddenImage);Fa.setAttribute("title",mxResources.get(ya?"hideIt":"show",[na]));mxUtils.setOpacity(Fa,ya?75:25);Fa.style.verticalAlign="middle";Fa.style.cursor="pointer";Fa.style.width="16px";if(x||Editor.isDarkMode())Fa.style.filter= -"invert(100%)";ta.appendChild(Fa);mxEvent.addListener(Fa,"click",function(sa){mxEvent.isShiftDown(sa)?T(0<=mxUtils.indexOf(V.hiddenTags,na)):(V.toggleHiddenTag(na),N(),V.refresh());mxEvent.consume(sa)});Ca.appendChild(ta);ta=document.createElement("td");ta.style.align="center";ta.style.width="16px";Fa=document.createElement("img");Fa.setAttribute("src",Editor.selectImage);Fa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Fa,ya?75:25);Fa.style.verticalAlign="middle";Fa.style.cursor= -"pointer";Fa.style.width="16px";if(x||Editor.isDarkMode())Fa.style.filter="invert(100%)";mxEvent.addListener(Fa,"click",function(sa){T(!0);la();mxEvent.consume(sa)});ta.appendChild(Fa);Ca.appendChild(ta);ta=document.createElement("td");ta.style.overflow="hidden";ta.style.whiteSpace="nowrap";ta.style.textOverflow="ellipsis";ta.style.verticalAlign="middle";ta.style.cursor="pointer";ta.setAttribute("title",na);a=document.createElement("a");mxUtils.write(a,na);a.style.textOverflow="ellipsis";a.style.position= -"relative";mxUtils.setOpacity(a,ya?100:40);ta.appendChild(a);mxEvent.addListener(ta,"click",function(sa){if(mxEvent.isShiftDown(sa))T(!0),la();else if(ya&&0mxUtils.indexOf(V.hiddenTags,la),Ca=document.createElement("tr"),ta=document.createElement("td");ta.style.align="center";ta.style.width="16px";var Fa=document.createElement("img");Fa.setAttribute("src",ya?Editor.visibleImage:Editor.hiddenImage);Fa.setAttribute("title",mxResources.get(ya?"hideIt":"show",[la]));mxUtils.setOpacity(Fa,ya?75:25);Fa.style.verticalAlign="middle";Fa.style.cursor="pointer";Fa.style.width="16px";if(x||Editor.isDarkMode())Fa.style.filter= +"invert(100%)";ta.appendChild(Fa);mxEvent.addListener(Fa,"click",function(sa){mxEvent.isShiftDown(sa)?T(0<=mxUtils.indexOf(V.hiddenTags,la)):(V.toggleHiddenTag(la),N(),V.refresh());mxEvent.consume(sa)});Ca.appendChild(ta);ta=document.createElement("td");ta.style.align="center";ta.style.width="16px";Fa=document.createElement("img");Fa.setAttribute("src",Editor.selectImage);Fa.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(Fa,ya?75:25);Fa.style.verticalAlign="middle";Fa.style.cursor= +"pointer";Fa.style.width="16px";if(x||Editor.isDarkMode())Fa.style.filter="invert(100%)";mxEvent.addListener(Fa,"click",function(sa){T(!0);ma();mxEvent.consume(sa)});ta.appendChild(Fa);Ca.appendChild(ta);ta=document.createElement("td");ta.style.overflow="hidden";ta.style.whiteSpace="nowrap";ta.style.textOverflow="ellipsis";ta.style.verticalAlign="middle";ta.style.cursor="pointer";ta.setAttribute("title",la);a=document.createElement("a");mxUtils.write(a,la);a.style.textOverflow="ellipsis";a.style.position= +"relative";mxUtils.setOpacity(a,ya?100:40);ta.appendChild(a);mxEvent.addListener(ta,"click",function(sa){if(mxEvent.isShiftDown(sa))T(!0),ma();else if(ya&&0mxUtils.indexOf(X,ha[za])&&X.push(ha[za]);X.sort();V.isSelectionEmpty()?Q(X):Q(X,V.getCommonTagsForCells(V.getSelectionCells()))}});V.selectionModel.addListener(mxEvent.CHANGE,ba);V.model.addListener(mxEvent.CHANGE,ba);V.addListener(mxEvent.REFRESH,ba);var ca=document.createElement("div");ca.style.display="flex";ca.style.alignItems="center";ca.style.boxSizing="border-box"; @@ -11696,269 +11696,269 @@ Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalV A.apply(this,arguments);null==x&&null!=this.globalVars&&(x=this.globalVars[m]);return x};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var m=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(m.ownerDocument)).decode(m)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};Graph.prototype.adaptBackgroundPage=function(m,x){if(null!=m&&null!=m.src&&Graph.isPageLink(m.originalSrc))try{var I=Graph.getSvgFromDataUri(m.src); if(null!=I){var L=(new DOMParser).parseFromString(I,"text/xml"),N=L.getElementsByTagName("style"),T=mxUtils.htmlEntities(Graph.createSvgDarkModeCss(),!1);for(I=0;I'+ -mxUtils.htmlEntities(m)+""};mxGraphView.prototype.redrawEnumerationState=function(m){var x="1"==mxUtils.getValue(m.style,"enumerate",0);x&&null==m.secondLabel?(m.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),m.secondLabel.size=12,m.secondLabel.state=m,m.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(m,m.secondLabel)):x||null==m.secondLabel||(m.secondLabel.destroy(),m.secondLabel=null);x=m.secondLabel;if(null!= -x){var I=m.view.scale,L=this.createEnumerationValue(m);m=this.graph.model.isVertex(m.cell)?new mxRectangle(m.x+m.width-4*I,m.y+4*I,0,0):mxRectangle.fromPoint(m.view.getPoint(m));x.bounds.equals(m)&&x.value==L&&x.scale==I||(x.bounds=m,x.value=L,x.scale=I,x.redraw())}};var P=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){P.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var m=this.getDrawPane().parentNode;!this.graph.mathEnabled|| -mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("svg"==this.graph.container.firstChild.nodeName||this.graph.container.firstChild==this.webKitForceRepaintNode)||(null!=this.webKitForceRepaintNode.parentNode&&this.webKitForceRepaintNode.parentNode.removeChild(this.webKitForceRepaintNode),this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode= -document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;",m.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,m.ownerSVGElement))}};var M=Graph.prototype.refresh;Graph.prototype.refresh=function(){M.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())}; -var S=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){S.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(m,x){"data:action/json,"==m.substring(0,17)&&(m=JSON.parse(m.substring(17)),null!=m.actions&&this.executeCustomActions(m.actions,null,x))};Graph.prototype.executeCustomActions=function(m,x,I){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread), -null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var L=!1,N=0,T=0,Q=mxUtils.bind(this,function(){L||(L=!0,this.model.beginUpdate())}),V=mxUtils.bind(this,function(){L&&(L=!1,this.model.endUpdate())}),X=mxUtils.bind(this,function(){0mxUtils.indexOf(aa.tags.visible,ha[ba])&&0>mxUtils.indexOf(ca,ha[ba])&&ca.push(ha[ba])}null!=ca&&this.setHiddenTags(ca);this.refresh()}0m.excludeCells.indexOf(x[L].id)&&I.push(x[L]); -x=I}return x};Graph.prototype.getCellsById=function(m){var x=[];if(null!=m)for(var I=0;Ix?this.hiddenTags.push(m):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(m){if(null==m||0==m.length||0==this.hiddenTags.length)return!1;m=m.split(" ");if(m.length>this.hiddenTags.length)return!1;for(var x=0;xmxUtils.indexOf(this.hiddenTags,m[x]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,x,I, -L){var N=[];if(null!=m){x=null!=x?x:this.model.getDescendants(this.model.getRoot());for(var T=0,Q={},V=0;V=m.length)){for(var Y=Z=0;YmxUtils.indexOf(N,V)&&(L=0'),Za.writeln("@media print {"),Za.writeln(".MathJax svg { shape-rendering: crispEdges; }"),Za.writeln("}"),Za.writeln(""));null!=m.editor.fontCss&&(Za.writeln('"));for(var cb=Ba.getCustomFonts(),bb=0;bb'): -(Za.writeln('"))}};if(Editor.enableCssDarkMode){var ib=La.getBackgroundImage;La.getBackgroundImage=function(){return N.adaptBackgroundPage(ib.apply(this,arguments))}}if("undefined"!==typeof MathJax){var jb=La.renderPage;La.renderPage=function(Za,cb,bb,eb,db,lb){var kb=mxClient.NO_FO,fb=jb.apply(this,arguments);mxClient.NO_FO=kb;this.graph.mathEnabled? -this.mathEnabled=this.mathEnabled||!0:fb.className="geDisableMathJax";return fb}}Na=null;Ya=N.shapeForegroundColor;$a=N.shapeBackgroundColor;Wa=N.enableFlowAnimation;N.enableFlowAnimation=!1;null!=N.themes&&"darkTheme"==N.defaultThemeName&&(Na=N.stylesheet,N.stylesheet=N.getDefaultStylesheet(),N.shapeForegroundColor="#000000",N.shapeBackgroundColor="#ffffff",N.refresh());La.open(null,null,Da,!0,wa);N.enableFlowAnimation=Wa;null!=Na&&(N.shapeForegroundColor=Ya,N.shapeBackgroundColor=$a,N.stylesheet= -Na,N.refresh())}else{Wa=Ba.background;if(null==Wa||""==Wa||Wa==mxConstants.NONE)Wa="#ffffff";La.backgroundColor=Wa;La.autoOrigin=$a;La.appendGraph(Ba,ab,Na,Ya,Da,!0,wa);Da=Ba.getCustomFonts();if(null!=La.wnd)for(Na=0;Na'):(La.wnd.document.writeln('"))}Ma&&(Ba.useCssTransforms=Ma,Ba.currentTranslate=Oa,Ba.currentScale=Xa,Ba.view.translate=Sa,Ba.view.scale=Ta);return La}var Ra=parseInt(Ea.value)/100;isNaN(Ra)&&(Ra=1,Ea.value="100 %");mxClient.IS_SF&&(Ra*=.75);var Ia=null,Va=N.shapeForegroundColor,Ua=N.shapeBackgroundColor;null!=N.themes&&"darkTheme"==N.defaultThemeName&&(Ia=N.stylesheet,N.stylesheet=N.getDefaultStylesheet(),N.shapeForegroundColor= -"#000000",N.shapeBackgroundColor="#ffffff",N.refresh());var ka=aa.value,ea=fa.value,oa=!Z.checked,pa=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(m,Z.checked,ka,ea,Aa.checked,sa.value,va.value,parseInt(za.value)/100,parseInt(Ea.value)/100,Ga.get());else{oa&&(oa=ba.checked||ka==X&&ea==X);if(!oa&&null!=m.pages&&m.pages.length){var ra=0;oa=m.pages.length-1;Z.checked||(ra=parseInt(ka)-1,oa=parseInt(ea)-1);for(var ja=ra;ja<=oa;ja++){var ma=m.pages[ja];ka=ma==m.currentPage?N:null;if(null==ka){ka= -m.createTemporaryGraph(N.stylesheet);ka.shapeForegroundColor=N.shapeForegroundColor;ka.shapeBackgroundColor=N.shapeBackgroundColor;ea=!0;ra=!1;var xa=null,ua=null;null==ma.viewState&&null==ma.root&&m.updatePageRoot(ma);null!=ma.viewState&&(ea=ma.viewState.pageVisible,ra=ma.viewState.mathEnabled,xa=ma.viewState.background,ua=ma.viewState.backgroundImage,ka.extFonts=ma.viewState.extFonts);null!=ua&&null!=ua.originalSrc&&(ua=m.createImageForPageLink(ua.originalSrc,ma));ka.background=xa;ka.backgroundImage= -null!=ua?new mxImage(ua.src,ua.width,ua.height,ua.x,ua.y):null;ka.pageVisible=ea;ka.mathEnabled=ra;var Ka=ka.getGraphBounds;ka.getGraphBounds=function(){var Ba=Ka.apply(this,arguments),La=this.backgroundImage;if(null!=La&&null!=La.width&&null!=La.height){var Da=this.view.translate,wa=this.view.scale;Ba=mxRectangle.fromRectangle(Ba);Ba.add(new mxRectangle((Da.x+La.x)*wa,(Da.y+La.y)*wa,La.width*wa,La.height*wa))}return Ba};var Ja=ka.getGlobalVariable;ka.getGlobalVariable=function(Ba){return"page"== -Ba?ma.getName():"pagenumber"==Ba?ja+1:"pagecount"==Ba?null!=m.pages?m.pages.length:1:Ja.apply(this,arguments)};document.body.appendChild(ka.container);m.updatePageRoot(ma);ka.model.setRoot(ma.root)}pa=Ha(ka,pa,ja!=oa,ma.getId());ka!=N&&ka.container.parentNode.removeChild(ka.container)}}else pa=Ha(N);null==pa||null==pa.wnd?m.handleError({message:mxResources.get("errorUpdatingPreview")}):(pa.mathEnabled&&(oa=pa.wnd.document,Qa&&(pa.wnd.IMMEDIATE_PRINT=!0),oa.writeln('